Fossil SCM
Initial tests for the diff-binary-detection fixes.
Commit
5db0eb521995923d561db01965a599ef73eeac67
Parent
dacc2bad82d0073…
1 file changed
+32
+32
| --- a/test/diff.test | ||
| +++ b/test/diff.test | ||
| @@ -0,0 +1,32 @@ | ||
| 1 | +16384]" | |
| 2 | +write_file file4_file file4.dat "test file 4 (l16384]\ntwo" | |
| 3 | +write_file f163842016 D. Richard Hipp | |
| 4 | +# | |
| 5 | +# This program is free software; you can redistribute it and/or | |
| 6 | +# modify it under the terms of the Simplified BSD License (also | |
| 7 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 8 | +# | |
| 9 | +# This program is distributed in the hope that it will be useful, | |
| 10 | +# but without any warranty; without even the implied warranty of | |
| 11 | +# merchantability or fitness for a particular purpose. | |
| 12 | +# | |
| 13 | +# Author contact information: | |
| 14 | +# [email protected] | |
| 15 | +# http://www.hwaci.com/drh/ | |
| 16 | +# | |
| 17 | +############################################################################ | |
| 18 | +# | |
| 19 | +# Tests for the diff command. | |
| 20 | +# | |
| 21 | + | |
| 22 | +require_no_open_checkout | |
| 23 | + | |
| 24 | +test_setup; set rootDir [file normalize [pwd]] | |
| 25 | + | |
| 26 | +################################### | |
| 27 | +# Tests of binaryfile det# | |
| 28 | +# Coite_file file]s of binary file det# | |
| 29 | +# Coite_file file1.dat z 32768] | |
| 30 | +fossil diff file1.dat | |
| 31 | + | |
| 32 | +test diff-file1-1 {[normalize_restest_cleanup |
| --- a/test/diff.test | |
| +++ b/test/diff.test | |
| @@ -0,0 +1,32 @@ | |
| --- a/test/diff.test | |
| +++ b/test/diff.test | |
| @@ -0,0 +1,32 @@ | |
| 1 | 16384]" |
| 2 | write_file file4_file file4.dat "test file 4 (l16384]\ntwo" |
| 3 | write_file f163842016 D. Richard Hipp |
| 4 | # |
| 5 | # This program is free software; you can redistribute it and/or |
| 6 | # modify it under the terms of the Simplified BSD License (also |
| 7 | # known as the "2-Clause License" or "FreeBSD License".) |
| 8 | # |
| 9 | # This program is distributed in the hope that it will be useful, |
| 10 | # but without any warranty; without even the implied warranty of |
| 11 | # merchantability or fitness for a particular purpose. |
| 12 | # |
| 13 | # Author contact information: |
| 14 | # [email protected] |
| 15 | # http://www.hwaci.com/drh/ |
| 16 | # |
| 17 | ############################################################################ |
| 18 | # |
| 19 | # Tests for the diff command. |
| 20 | # |
| 21 | |
| 22 | require_no_open_checkout |
| 23 | |
| 24 | test_setup; set rootDir [file normalize [pwd]] |
| 25 | |
| 26 | ################################### |
| 27 | # Tests of binaryfile det# |
| 28 | # Coite_file file]s of binary file det# |
| 29 | # Coite_file file1.dat z 32768] |
| 30 | fossil diff file1.dat |
| 31 | |
| 32 | test diff-file1-1 {[normalize_restest_cleanup |