You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 5, 2024. It is now read-only.
Neil Fraser edited this page Apr 17, 2019
·
2 revisions
Each language port of Diff Match Patch uses the same API. These are the language-specific notes regarding Dart.
Dart can either be run in the Dart VM, or it may be compiled to JavaScript. Note that in the latter case, there's already a version of this library natively written in JavaScript.
Go to the dart directory and save the above program as hello.dart. Then execute dart hello.dart.
Tests
Unit tests can be performed from the dart/tests directory by executing dart DiffMatchPatchTest.dart. All tests should pass.
Speed test for diff can be performed from the dart/tests directory by executing dart SpeedtestVM.dart.
Alternatively, the speed test can be compiled to JavaScript. Go to the dart/tests directory and execute dart2js -O4 --out=Speedtest.dart.js Speedtest.dart, then open dart/tests/Speedtest.html in a browser.