mediawiki-extensions-AbuseF.../tests/parserTests/numbers.t
Daimona Eaytoy b9a1e86245 Remove old number syntax
Bug: T212730
Change-Id: I7573da1683efc83b5002b8948c97dd7f6658a488
2020-02-25 23:38:19 +00:00

10 lines
321 B
Perl

/* Things that are NOT numbers; */
0xfoo := 'foobar';
0b10bar := 'bar';
0xfoo === 'foobar' & 0b10bar === 'bar' &
/* Actual numbers */
0x1A === 0x1a & 0x1a === 26 & 0xa === 10 & 0b11111111 === 255 & 0o123 === 83 & 0x123 === 291 & 0xF === 15 &
0o10 === 8 & 0o1 === 1 & 0b101010 === 42 & 0b101010 === 0x2a & 0x2a === 0o52