Changeset View
Changeset View
Standalone View
Standalone View
autotests/input/highlight.pony
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | |||||
97 | 97 | | |||
98 | fun tag log(msg: String, verbose: Bool = false) | 98 | fun tag log(msg: String, verbose: Bool = false) | ||
99 | be fail() => | 99 | be fail() => | ||
100 | be assert_failed(msg: String) => | 100 | be assert_failed(msg: String) => | ||
101 | fun tag assert_true(actual: Bool, msg: String = "") ? | 101 | fun tag assert_true(actual: Bool, msg: String = "") ? | ||
102 | fun tag expect_true(actual: Bool, msg: String = ""): Bool | 102 | fun tag expect_true(actual: Bool, msg: String = ""): Bool | ||
103 | fun tag expect_eq[A: (Equatable[A] #read & Stringable)] | 103 | fun tag expect_eq[A: (Equatable[A] #read & Stringable)] | ||
104 | (expect: A, actual: A, msg: String = ""): Bool | 104 | (expect: A, actual: A, msg: String = ""): Bool | ||
105 | fun tag expect_eq[A: (Equatable[A] #unknown & Stringable)] | ||||
106 | (expect: A, actual: A, msg: String = ""): Bool | ||||
105 | 107 | | |||
106 | fun add(other: A): A | 108 | fun add(other: A): A | ||
107 | fun sub(other: A): A | 109 | fun sub(other: A): A | ||
108 | fun mul(other: A): A | 110 | fun mul(other: A): A | ||
109 | fun div(other: A): A | 111 | fun div(other: A): A | ||
110 | fun mod(other: A): A | 112 | fun mod(other: A): A | ||
111 | fun eq(other: A): Bool | 113 | fun eq(other: A): Bool | ||
112 | fun ne(other: A): Bool | 114 | fun ne(other: A): Bool | ||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
154 | class A | 156 | class A | ||
155 | class _A | 157 | class _A | ||
156 | x' | 158 | x' | ||
157 | x'' | 159 | x'' | ||
158 | x'.string() | 160 | x'.string() | ||
159 | '\uaaaa' | 161 | '\uaaaa' | ||
160 | '\Ubbbbbb' | 162 | '\Ubbbbbb' | ||
161 | '\xcc' | 163 | '\xcc' | ||
164 | '\'' | ||||
165 | '\n' | ||||
162 | "\uaaaaa" | 166 | "\uaaaaa" | ||
163 | "\Ubbbbbbb" | 167 | "\Ubbbbbbb" | ||
164 | "\xccc" | 168 | "\xccc" | ||
169 | "\"" | ||||
170 | "\n" | ||||
165 | 34.4 | 171 | 34.4 | ||
166 | 34.4e43 | 172 | 34.4e43 | ||
167 | 43e4 | 173 | 43e4 | ||
168 | 0x3040 | 174 | 0x3040 | ||
169 | 0xaF | 175 | 0xaF | ||
170 | 0b01 | 176 | 0b01 | ||
171 | 3_43_4 | 177 | 3_43_4 | ||
172 | 0x0_4 | 178 | 0x0_4 | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |