Repository navigation
Commit a1ee9ac
committed
Tests for scala#107 white space defect when parsing adjacent entities
Add unit tests to check for white space between XML entities. One
test is the original example of two adjacent entities. An additional
test case *has* white space between entities, and is just an
affirmation of the existing behavior, and should be preserved.
This bug pops up when the preserveWS option is either enabled or
disabled for ConstructingParser. This doubles the number of unit
tests to four.
The fifth unit test, listed first, of adjacent text characters is
rhetoric, and doesn't need to be included in the final merge. The
previous sentence shouldn't be merged either.
[error] Test XMLTest.preserveNoSpaceBetweenEntitiesOptionEnabled failed:
[error] expected: <<div><[]<</div>>
[error] but was: <<div><[ ]<</div>>
[error] Test XMLTest.preserveNoSpaceBetweenEntitiesOptionDisabled failed:
[error] expected: <<div><[]<</div>>
[error] but was: <<div><[ ]<</div>>1 parent 55008bd commit a1ee9ac
1 file changed
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
838 | 907 | | |
839 | 908 | | |
840 | 909 | | |
| |||
0 commit comments