OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkScript.h" | 10 #include "SkScript.h" |
(...skipping 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1833 testFalse('2'==11.), | 1833 testFalse('2'==11.), |
1834 // string, string | 1834 // string, string |
1835 testFalse('2'<'2'), | 1835 testFalse('2'<'2'), |
1836 testFalse('2'<'11'), | 1836 testFalse('2'<'11'), |
1837 testFalse('20'<'11'), | 1837 testFalse('20'<'11'), |
1838 testTrue('2'=='2'), | 1838 testTrue('2'=='2'), |
1839 testFalse('2'=='11'), | 1839 testFalse('2'=='11'), |
1840 // logic | 1840 // logic |
1841 testInt(1?2:3), | 1841 testInt(1?2:3), |
1842 testInt(0?2:3), | 1842 testInt(0?2:3), |
1843 testInt(1&&2||3), | 1843 testInt((1&&2)||3), |
1844 testInt(1&&0||3), | 1844 testInt((1&&0)||3), |
1845 testInt(1&&0||0), | 1845 testInt((1&&0)||0), |
1846 testInt(1||0&&3), | 1846 testInt(1||(0&&3)), |
1847 testInt(0||0&&3), | 1847 testInt(0||(0&&3)), |
1848 testInt(0||1&&3), | 1848 testInt(0||(1&&3)), |
1849 testInt(1?(2?3:4):5), | 1849 testInt(1?(2?3:4):5), |
1850 testInt(0?(2?3:4):5), | 1850 testInt(0?(2?3:4):5), |
1851 testInt(1?(0?3:4):5), | 1851 testInt(1?(0?3:4):5), |
1852 testInt(0?(0?3:4):5), | 1852 testInt(0?(0?3:4):5), |
1853 testInt(1?2?3:4:5), | 1853 testInt(1?2?3:4:5), |
1854 testInt(0?2?3:4:5), | 1854 testInt(0?2?3:4:5), |
1855 testInt(1?0?3:4:5), | 1855 testInt(1?0?3:4:5), |
1856 testInt(0?0?3:4:5), | 1856 testInt(0?0?3:4:5), |
1857 | 1857 |
1858 testInt(1?2:(3?4:5)), | 1858 testInt(1?2:(3?4:5)), |
(...skipping 27 matching lines...) Expand all Loading... |
1886 break; | 1886 break; |
1887 case SkType_String: | 1887 case SkType_String: |
1888 SkASSERT(strcmp(value.fOperand.fString->c_str(), scriptTests[ind
ex].fStringAnswer) == 0); | 1888 SkASSERT(strcmp(value.fOperand.fString->c_str(), scriptTests[ind
ex].fStringAnswer) == 0); |
1889 break; | 1889 break; |
1890 default: | 1890 default: |
1891 SkASSERT(0); | 1891 SkASSERT(0); |
1892 } | 1892 } |
1893 } | 1893 } |
1894 } | 1894 } |
1895 #endif | 1895 #endif |
OLD | NEW |