package Ġtests Ċ Ċ import Ġcom . github . fluid sonic . fluid . json .* Ċ import Ġcom . w inter be . ex pe kt . should Ċ import Ġorg . jetbrains . spe k . api . Spe k Ċ import Ġorg . jetbrains . spe k . api . dsl . Test Body Ċ import Ġorg . jetbrains . spe k . api . dsl . describe Ċ import Ġorg . jetbrains . spe k . api . dsl . it Ċ import Ġjava . io . Reader Ċ import Ġjava . io . String Reader ĊĊ Ċ internal Ġobject ĠStandard Reader Accept Spec Ġ: ĠSpe k ({ ĊĊ ĉ describe (" Standard Reader Ġsucceeds Ġfor ") Ġ{ ĊĊĉ ĉ describe (". nextToken ") Ġ{ ĊĊĉĉ ĉ it (" should Ġmatch Ġfull Ġtokens ") Ġ{ Ċĉĉĉ ĉ reader (" null "). nextToken . should . equal ( JSON Token . null Value ) Ċĉĉĉ ĉ reader (" true "). nextToken . should . equal ( JSON Token . boolean Value ) Ċĉĉĉ ĉ reader (" false "). nextToken . should . equal ( JSON Token . boolean Value ) Ċĉĉĉ ĉ reader (" 0 "). nextToken . should . equal ( JSON Token . number Value ) Ċĉĉĉ ĉ reader (" 1 "). nextToken . should . equal ( JSON Token . number Value ) Ċĉĉĉ ĉ reader ("- 1 . 0 "). nextToken . should . equal ( JSON Token . number Value ) Ċĉĉĉ ĉ reader (" \"\ "" ). nextToken . should . equal ( JSON Token . stringValue ) Ċĉĉĉ ĉ reader (" [] "). apply Ġ{ Ċĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . list Start ) Ċĉĉĉĉ ĉ read List Start () Ċĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . list End ) Ċĉĉĉ ĉ } Ċĉĉĉ ĉ reader ("{} "). apply Ġ{ Ċĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . map Start ) Ċĉĉĉĉ ĉ read Map Start () Ċĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . map End ) Ċĉĉĉ ĉ } Ċĉĉ ĉ } ĊĊĉĉ ĉ it (" should Ġconsume Ġminimal Ġinput ") Ġ{ Ċĉĉĉ ĉ reader (" n "). nextToken . should . equal ( JSON Token . null Value ) Ċĉĉĉ ĉ reader (" t "). nextToken . should . equal ( JSON Token . boolean Value ) Ċĉĉĉ ĉ reader (" f "). nextToken . should . equal ( JSON Token . boolean Value ) Ċĉĉĉ ĉ reader (" 0 "). nextToken . should . equal ( JSON Token . number Value ) Ċĉĉĉ ĉ reader (" 1 "). nextToken . should . equal ( JSON Token . number Value ) Ċĉĉĉ ĉ reader ("- "). nextToken . should . equal ( JSON Token . number Value ) Ċĉĉĉ ĉ reader (" [" ). nextToken . should . equal ( JSON Token . list Start ) Ċĉĉĉ ĉ reader ("\ "" ). nextToken . should . equal ( JSON Token . stringValue ) Ċĉĉĉ ĉ reader ("{ "). nextToken . should . equal ( JSON Token . map Start ) Ċĉĉ ĉ } ĊĊĉĉ ĉ it (" should Ġbe Ġide mpot ent ") Ġ{ Ċĉĉĉ ĉ reader (" n "). apply Ġ{ Ġnext Token ; Ġnext Token . should . equal ( JSON Token . null Value ) Ġ} Ċĉĉĉ ĉ reader (" t "). apply Ġ{ Ġnext Token ; Ġnext Token . should . equal ( JSON Token . boolean Value ) Ġ} Ċĉĉĉ ĉ reader (" f "). apply Ġ{ Ġnext Token ; Ġnext Token . should . equal ( JSON Token . boolean Value ) Ġ} Ċĉĉĉ ĉ reader (" 0 "). apply Ġ{ Ġnext Token ; Ġnext Token . should . equal ( JSON Token . number Value ) Ġ} Ċĉĉĉ ĉ reader (" 1 "). apply Ġ{ Ġnext Token ; Ġnext Token . should . equal ( JSON Token . number Value ) Ġ} Ċĉĉĉ ĉ reader ("- "). apply Ġ{ Ġnext Token ; Ġnext Token . should . equal ( JSON Token . number Value ) Ġ} Ċĉĉĉ ĉ reader (" [" ). apply Ġ{ Ġnext Token ; Ġnext Token . should . equal ( JSON Token . list Start ) Ġ} Ċĉĉĉ ĉ reader ("\ "" ). apply Ġ{ Ġnext Token ; Ġnext Token . should . equal ( JSON Token . stringValue ) Ġ} Ċĉĉĉ ĉ reader ("{ "). apply Ġ{ Ġnext Token ; Ġnext Token . should . equal ( JSON Token . map Start ) Ġ} Ċĉĉ ĉ } ĊĊĉĉ ĉ it (" should Ġbe Ġ' null ' Ġwhen Ġdone ") Ġ{ Ċĉĉĉ ĉ reader (" 0 "). apply Ġ{ Ġread Int (); Ġnext Token . should . be .` null ` Ġ} Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĊĉ ĉ it (" close () ") Ġ{ Ċĉĉ ĉ reader (" null "). close () Ċĉĉ ĉ reader (" null "). apply Ġ{ Ċĉĉĉ ĉ close () Ċĉĉĉ ĉ close () Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read Boolean () ") Ġ{ Ċĉĉ ĉ reader (" true "). read Boolean (). should . be .` true ` Ċĉĉ ĉ reader (" false "). read Boolean (). should . be .` false ` Ċĉ ĉ } ĊĊĉ ĉ it (" read Boolean OrNull () ") Ġ{ Ċĉĉ ĉ reader (" true "). read Boolean OrNull (). should . be .` true ` Ċĉĉ ĉ reader (" false "). read Boolean OrNull (). should . be .` false ` Ċĉĉ ĉ reader (" null "). read Boolean OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read Byte () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Byte (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader ("- 0 "). read Byte (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader (" 1 0 0 "). read Byte (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 0 0 "). read Byte (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Byte (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Byte (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Byte (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Byte (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Byte (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Byte (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 1 e 2 "). read Byte (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 e 2 "). read Byte (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Byte (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Byte (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). read Byte (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). read Byte (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Byte (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Byte (). should . equal ( 0 . to Byte ()) Ċĉ ĉ } ĊĊĉ ĉ it (" read Byte OrNull () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Byte OrNull (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader ("- 0 "). read Byte OrNull (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader (" 1 0 0 "). read Byte OrNull (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 0 0 "). read Byte OrNull (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Byte OrNull (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Byte OrNull (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Byte OrNull (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Byte OrNull (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Byte OrNull (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Byte OrNull (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 1 e 2 "). read Byte OrNull (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 e 2 "). read Byte OrNull (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Byte OrNull (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Byte OrNull (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). read Byte OrNull (). should . equal ( 1 0 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). read Byte OrNull (). should . equal ((- 1 0 0 ). to Byte ()) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Byte OrNull (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Byte OrNull (). should . equal ( 0 . to Byte ()) Ċĉĉ ĉ reader (" null "). read Byte OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read Double () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Double (). should . equal ( 0 . 0 ) Ċĉĉ ĉ reader ("- 0 "). read Double (). should . equal (- 0 . 0 ) Ċĉĉ ĉ reader (" 1 0 0 "). read Double (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 0 0 "). read Double (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Double (). should . equal ( 0 . 0 ) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Double (). should . equal (- 0 . 0 ) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Double (). should . equal ( 1 0 0 . 0 0 1 ) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Double (). should . equal (- 1 0 0 . 0 0 1 ) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Double (). should . equal ( 1 0 0 . 9 9 9 ) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Double (). should . equal (- 1 0 0 . 9 9 9 ) Ċĉĉ ĉ reader (" 1 e 2 "). read Double (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 e 2 "). read Double (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Double (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Double (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). read Double (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). read Double (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Double (). should . equal ( 0 . 0 1 ) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Double (). should . equal (- 0 . 0 1 ) Ċĉĉ ĉ reader (" 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 "). read Double (). should . equal ( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 . 0 ) Ċĉĉ ĉ reader ("- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 "). read Double (). should . equal (- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 . 0 ) Ċĉĉ ĉ reader (" 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Double (). should . equal ( 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Double (). should . equal (- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 e 2 0 0 0 0 "). read Double (). should . equal ( Double . POSITIVE _ INFINITY ) Ċĉĉ ĉ reader ("- 1 e 2 0 0 0 0 "). read Double (). should . equal ( Double . NEGATIVE _ INFINITY ) Ċĉ ĉ } ĊĊĉ ĉ it (" read Double OrNull () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Double OrNull (). should . equal ( 0 . 0 ) Ċĉĉ ĉ reader ("- 0 "). read Double OrNull (). should . equal (- 0 . 0 ) Ċĉĉ ĉ reader (" 1 0 0 "). read Double OrNull (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 0 0 "). read Double OrNull (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Double OrNull (). should . equal ( 0 . 0 ) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Double OrNull (). should . equal (- 0 . 0 ) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Double OrNull (). should . equal ( 1 0 0 . 0 0 1 ) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Double OrNull (). should . equal (- 1 0 0 . 0 0 1 ) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Double OrNull (). should . equal ( 1 0 0 . 9 9 9 ) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Double OrNull (). should . equal (- 1 0 0 . 9 9 9 ) Ċĉĉ ĉ reader (" 1 e 2 "). read Double OrNull (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 e 2 "). read Double OrNull (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Double OrNull (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Double OrNull (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). read Double OrNull (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). read Double OrNull (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Double OrNull (). should . equal ( 0 . 0 1 ) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Double OrNull (). should . equal (- 0 . 0 1 ) Ċĉĉ ĉ reader (" 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 "). read Double OrNull (). should . equal ( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 . 0 ) Ċĉĉ ĉ reader ("- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 "). read Double OrNull (). should . equal (- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 . 0 ) Ċĉĉ ĉ reader (" 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Double OrNull (). should . equal ( 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Double OrNull (). should . equal (- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 e 2 0 0 0 0 "). read Double OrNull (). should . equal ( Double . POSITIVE _ INFINITY ) Ċĉĉ ĉ reader ("- 1 e 2 0 0 0 0 "). read Double OrNull (). should . equal ( Double . NEGATIVE _ INFINITY ) Ċĉĉ ĉ reader (" null "). read Double OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read Elements From Map () ") Ġ{ Ċĉĉ ĉ val Ġmap Ġ= Ġmutable Map Of < String , ĠAny ?> () ĊĊĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġtrue , Ġ\" key 1 \" Ġ: \" hey \", Ġ\" key 2 \" Ġ: Ġnull Ġ} "). read Elements From Map Ġ{ Ġkey Ġ-> Ċĉĉĉ ĉ map [ key ] Ġ= Ġread Value OrNull () Ċĉĉ ĉ } ĊĊĉĉ ĉ map . should . equal ( map Of ( Ċĉĉĉ ĉ " key 0 " Ġto Ġtrue , Ċĉĉĉ ĉ " key 1 " Ġto Ġ" hey ", Ċĉĉĉ ĉ " key 2 " Ġto Ġnull Ċĉĉ ĉ )) Ċĉ ĉ } ĊĊĉ ĉ it (" read EndOf Input () ") Ġ{ Ċĉĉ ĉ reader (" null "). apply Ġ{ Ċĉĉĉ ĉ read Null () Ċĉĉĉ ĉ read EndOf Input () Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read Float () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Float (). should . equal ( 0 . 0 f ) Ċĉĉ ĉ reader ("- 0 "). read Float (). should . equal (- 0 . 0 f ) Ċĉĉ ĉ reader (" 1 0 0 "). read Float (). should . equal ( 1 0 0 . 0 f ) Ċĉĉ ĉ reader ("- 1 0 0 "). read Float (). should . equal (- 1 0 0 . 0 f ) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Float (). should . equal ( 0 . 0 f ) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Float (). should . equal (- 0 . 0 f ) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Float (). should . equal ( 1 0 0 . 0 0 1 f ) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Float (). should . equal (- 1 0 0 . 0 0 1 f ) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Float (). should . equal ( 1 0 0 . 9 9 9 f ) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Float (). should . equal (- 1 0 0 . 9 9 9 f ) Ċĉĉ ĉ reader (" 1 e 2 "). read Float (). should . equal ( 1 0 0 . 0 f ) Ċĉĉ ĉ reader ("- 1 e 2 "). read Float (). should . equal (- 1 0 0 . 0 f ) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Float (). should . equal ( 1 0 0 . 0 f ) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Float (). should . equal (- 1 0 0 . 0 f ) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). read Float (). should . equal ( 1 0 0 . 0 f ) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). read Float (). should . equal (- 1 0 0 . 0 f ) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Float (). should . equal ( 0 . 0 1 f ) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Float (). should . equal (- 0 . 0 1 f ) Ċĉĉ ĉ reader (" 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 "). read Float (). should . equal ( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 . 0 f ) Ċĉĉ ĉ reader ("- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 "). read Float (). should . equal (- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 . 0 f ) Ċĉĉ ĉ reader (" 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Float (). should . equal ( 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 f ) Ċĉĉ ĉ reader ("- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Float (). should . equal (- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 f ) Ċĉĉ ĉ reader (" 1 e 2 0 0 0 0 "). read Float (). should . equal ( Float . POSITIVE _ INFINITY ) Ċĉĉ ĉ reader ("- 1 e 2 0 0 0 0 "). read Float (). should . equal ( Float . NEGATIVE _ INFINITY ) Ċĉ ĉ } ĊĊĉ ĉ it (" read Float OrNull () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Float OrNull (). should . equal ( 0 . 0 f ) Ċĉĉ ĉ reader ("- 0 "). read Float OrNull (). should . equal (- 0 . 0 f ) Ċĉĉ ĉ reader (" 1 0 0 "). read Float OrNull (). should . equal ( 1 0 0 . 0 f ) Ċĉĉ ĉ reader ("- 1 0 0 "). read Float OrNull (). should . equal (- 1 0 0 . 0 f ) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Float OrNull (). should . equal ( 0 . 0 f ) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Float OrNull (). should . equal (- 0 . 0 f ) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Float OrNull (). should . equal ( 1 0 0 . 0 0 1 f ) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Float OrNull (). should . equal (- 1 0 0 . 0 0 1 f ) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Float OrNull (). should . equal ( 1 0 0 . 9 9 9 f ) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Float OrNull (). should . equal (- 1 0 0 . 9 9 9 f ) Ċĉĉ ĉ reader (" 1 e 2 "). read Float OrNull (). should . equal ( 1 0 0 . 0 f ) Ċĉĉ ĉ reader ("- 1 e 2 "). read Float OrNull (). should . equal (- 1 0 0 . 0 f ) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Float OrNull (). should . equal ( 1 0 0 . 0 f ) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Float OrNull (). should . equal (- 1 0 0 . 0 f ) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). read Float OrNull (). should . equal ( 1 0 0 . 0 f ) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). read Float OrNull (). should . equal (- 1 0 0 . 0 f ) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Float OrNull (). should . equal ( 0 . 0 1 f ) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Float OrNull (). should . equal (- 0 . 0 1 f ) Ċĉĉ ĉ reader (" 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 "). read Float OrNull (). should . equal ( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 . 0 f ) Ċĉĉ ĉ reader ("- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 "). read Float OrNull (). should . equal (- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 . 0 f ) Ċĉĉ ĉ reader (" 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Float OrNull (). should . equal ( 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 f ) Ċĉĉ ĉ reader ("- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Float OrNull (). should . equal (- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 f ) Ċĉĉ ĉ reader (" 1 e 2 0 0 0 0 "). read Float OrNull (). should . equal ( Float . POSITIVE _ INFINITY ) Ċĉĉ ĉ reader ("- 1 e 2 0 0 0 0 "). read Float OrNull (). should . equal ( Float . NEGATIVE _ INFINITY ) Ċĉĉ ĉ reader (" null "). read Float OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read From List () ") Ġ{ Ċĉĉ ĉ reader (" [] "). apply Ġ{ Ċĉĉĉ ĉ read From List Ġ{ ĠDummy 1 Ġ}. should . equal ( Dummy 1 ) Ċĉĉ ĉ } ĊĊĉĉ ĉ reader ("[ Ġ\ t \ n \ r ]"). apply Ġ{ Ċĉĉĉ ĉ read From List Ġ{ ĠDummy 1 Ġ}. should . equal ( Dummy 1 ) Ċĉĉ ĉ } ĊĊĉĉ ĉ reader ("[ 1 ]"). apply Ġ{ Ċĉĉĉ ĉ read From List Ġ{ Ċĉĉĉĉ ĉ skip Value () Ċĉĉĉĉ ĉ Dummy 1 Ċĉĉĉ ĉ }. should . equal ( Dummy 1 ) Ċĉĉ ĉ } ĊĊĉĉ ĉ reader ("[ Ġtrue , Ġ\" hey \", Ġnull Ġ] "). apply Ġ{ Ċĉĉĉ ĉ read From List Ġ{ Ċĉĉĉĉ ĉ skip Value () Ċĉĉĉĉ ĉ skip Value () Ċĉĉĉĉ ĉ skip Value () Ċĉĉĉĉ ĉ Dummy 1 Ċĉĉĉ ĉ }. should . equal ( Dummy 1 ) Ċĉĉ ĉ } ĊĊĉĉ ĉ reader ("[ Ġ[], Ġ[ Ġ 1 Ġ] Ġ] "). apply Ġ{ Ċĉĉĉ ĉ read From List Ġ{ Ċĉĉĉĉ ĉ read From List Ġ{ ĠDummy 2 Ġ}. should . equal ( Dummy 2 ) Ċĉĉĉĉ ĉ read From List Ġ{ Ċĉĉĉĉĉ ĉ skip Value () Ċĉĉĉĉĉ ĉ Dummy 3 Ċĉĉĉĉ ĉ }. should . equal ( Dummy 3 ) Ċĉĉĉĉ ĉ Dummy 1 Ċĉĉĉ ĉ }. should . equal ( Dummy 1 ) Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read From ListBy Element () ") Ġ{ Ċĉĉ ĉ reader ("[ 1 , 2 ]"). apply Ġ{ Ċĉĉĉ ĉ val Ġlist Ġ= Ġmutable ListOf < Int >() Ċĉĉĉ ĉ read From ListBy Element Ġ{ Ġlist Ġ+= Ġread Int () Ġ} Ċĉĉĉ ĉ list . should . equal ( listOf ( 1 , Ġ 2 )) Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read From Map () Ġinline ") Ġ{ Ċĉĉ ĉ reader ("{} "). apply Ġ{ Ċĉĉĉ ĉ read From Map Ġ{ ĠDummy 1 Ġ}. should . equal ( Dummy 1 ) Ċĉĉ ĉ } Ċĉĉ ĉ reader ("{ Ġ\ t \ n \ r } "). apply Ġ{ Ċĉĉĉ ĉ read From Map Ġ{ ĠDummy 1 Ġ}. should . equal ( Dummy 1 ) Ċĉĉ ĉ } Ċĉĉ ĉ reader ("{ \" key \": 1 } "). apply Ġ{ Ċĉĉĉ ĉ read From Map Ġ{ Ċĉĉĉĉ ĉ readString (). should . equal (" key ") Ċĉĉĉĉ ĉ readInt (). should . equal ( 1 ) Ċĉĉĉĉ ĉ Dummy 1 Ċĉĉĉ ĉ }. should . equal ( Dummy 1 ) Ċĉĉ ĉ } Ċĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġtrue , Ġ\" key 1 \" Ġ: \" hey \", Ġ\" key 2 \" Ġ: Ġnull Ġ} "). apply Ġ{ Ċĉĉĉ ĉ read From Map Ġ{ Ċĉĉĉĉ ĉ readString (). should . equal (" key 0 ") Ċĉĉĉĉ ĉ read Boolean (). should . equal ( true ) Ċĉĉĉĉ ĉ readString (). should . equal (" key 1 ") Ċĉĉĉĉ ĉ readString (). should . equal (" hey ") Ċĉĉĉĉ ĉ readString (). should . equal (" key 2 ") Ċĉĉĉĉ ĉ read Null () Ċĉĉĉĉ ĉ Dummy 1 Ċĉĉĉ ĉ }. should . equal ( Dummy 1 ) Ċĉĉ ĉ } Ċĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġ{}, Ġ\" key 1 \": Ġ{ Ġ\" key \": Ġ 1 Ġ} Ġ} "). apply Ġ{ Ċĉĉĉ ĉ read From Map Ġ{ Ċĉĉĉĉ ĉ readString (). should . equal (" key 0 ") Ċĉĉĉĉ ĉ read From Map Ġ{ ĠDummy 2 Ġ}. should . equal ( Dummy 2 ) Ċĉĉĉĉ ĉ readString (). should . equal (" key 1 ") Ċĉĉĉĉ ĉ read From Map Ġ{ Ċĉĉĉĉĉ ĉ readString (). should . equal (" key ") Ċĉĉĉĉĉ ĉ readInt (). should . equal ( 1 ) Ċĉĉĉĉĉ ĉ Dummy 3 Ċĉĉĉĉ ĉ }. should . equal ( Dummy 3 ) Ċĉĉĉĉ ĉ Dummy 1 Ċĉĉĉ ĉ }. should . equal ( Dummy 1 ) Ċĉĉ ĉ } Ċĉĉ ĉ reader ("{ Ġ\" Ġ\ \\\ Ġ\\ \" Ġ\ \/ Ġ\\ b Ġ\\ f Ġ\\ n Ġ\\ r Ġ\\ t Ġ\\ uD 8 3 D \\ udc 3 6 Ġ\ ": Ġ 1 Ġ} "). apply Ġ{ Ċĉĉĉ ĉ read From Map Ġ{ Ċĉĉĉĉ ĉ readString (). should . equal (" Ġ\\ Ġ\" Ġ/ Ġ\ b Ġ\ u 0 0 0 C Ġ\ n Ġ\ r Ġ\ t ĠðŁĲ ¶ Ġ") Ċĉĉĉĉ ĉ readInt (). should . equal ( 1 ) Ċĉĉĉĉ ĉ Dummy 1 Ċĉĉĉ ĉ }. should . equal ( Dummy 1 ) Ċĉĉ ĉ } Ċĉĉ ĉ reader ("{ Ġ\" 0 \": Ġ 0 , Ġ\" 2 \": Ġ 2 , Ġ\" 1 \": Ġ 1 , Ġ\" 3 \": Ġ 3 , Ġ\" - 1 \": Ġ- 1 Ġ} "). apply Ġ{ Ċĉĉĉ ĉ read From Map Ġ{ Ċĉĉĉĉ ĉ readString (). should . equal (" 0 ") Ċĉĉĉĉ ĉ readInt (). should . equal ( 0 ) Ċĉĉĉĉ ĉ readString (). should . equal (" 2 ") Ċĉĉĉĉ ĉ readInt (). should . equal ( 2 ) Ċĉĉĉĉ ĉ readString (). should . equal (" 1 ") Ċĉĉĉĉ ĉ readInt (). should . equal ( 1 ) Ċĉĉĉĉ ĉ readString (). should . equal (" 3 ") Ċĉĉĉĉ ĉ readInt (). should . equal ( 3 ) Ċĉĉĉĉ ĉ readString (). should . equal ("- 1 ") Ċĉĉĉĉ ĉ readInt (). should . equal (- 1 ) Ċĉĉĉĉ ĉ Dummy 1 Ċĉĉĉ ĉ }. should . equal ( Dummy 1 ) Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read From Map By Element () ") Ġ{ Ċĉĉ ĉ reader (""" { Ġ" one ": Ġ 1 , Ġ" two ": Ġ 2 Ġ} "" "). apply Ġ{ Ċĉĉĉ ĉ val Ġmap Ġ= Ġmutable Map Of < String , ĠInt >() Ċĉĉĉ ĉ read From Map By Element Ġ{ Ġmap [ read Map Key ()] Ġ= Ġread Int () Ġ} Ċĉĉĉ ĉ map . should . equal ( map Of (" one " Ġto Ġ 1 , Ġ" two " Ġto Ġ 2 )) Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read From Map By Element Value () ") Ġ{ Ċĉĉ ĉ reader (""" { Ġ" one ": Ġ 1 , Ġ" two ": Ġ 2 Ġ} "" "). apply Ġ{ Ċĉĉĉ ĉ val Ġmap Ġ= Ġmutable Map Of < String , ĠInt >() Ċĉĉĉ ĉ read From Map By Element Value Ġ{ Ġkey Ġ-> Ġmap [ key ] Ġ= Ġread Int () Ġ} Ċĉĉĉ ĉ map . should . equal ( map Of (" one " Ġto Ġ 1 , Ġ" two " Ġto Ġ 2 )) Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" readInt () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). readInt (). should . equal ( 0 ) Ċĉĉ ĉ reader ("- 0 "). readInt (). should . equal ( 0 ) Ċĉĉ ĉ reader (" 1 0 0 "). readInt (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 0 0 "). readInt (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). readInt (). should . equal ( 0 ) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). readInt (). should . equal ( 0 ) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). readInt (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). readInt (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). readInt (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). readInt (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 1 e 2 "). readInt (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 e 2 "). readInt (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). readInt (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). readInt (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). readInt (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). readInt (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). readInt (). should . equal ( 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). readInt (). should . equal ( 0 ) Ċĉ ĉ } ĊĊĉ ĉ it (" readInt OrNull () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). readInt OrNull (). should . equal ( 0 ) Ċĉĉ ĉ reader ("- 0 "). readInt OrNull (). should . equal ( 0 ) Ċĉĉ ĉ reader (" 1 0 0 "). readInt OrNull (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 0 0 "). readInt OrNull (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). readInt OrNull (). should . equal ( 0 ) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). readInt OrNull (). should . equal ( 0 ) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). readInt OrNull (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). readInt OrNull (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). readInt OrNull (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). readInt OrNull (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 1 e 2 "). readInt OrNull (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 e 2 "). readInt OrNull (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). readInt OrNull (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). readInt OrNull (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). readInt OrNull (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). readInt OrNull (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). readInt OrNull (). should . equal ( 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). readInt OrNull (). should . equal ( 0 ) Ċĉĉ ĉ reader (" null "). readInt OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read List () ") Ġ{ Ċĉĉ ĉ reader (" [] "). read List (). should . equal ( emptyList ()) Ċĉĉ ĉ reader ("[ Ġ\ t \ n \ r ]"). read List (). should . equal ( emptyList ()) Ċĉĉ ĉ reader ("[ 1 ]"). read List (). should . equal ( listOf ( 1 )) Ċĉĉ ĉ reader ("[ Ġtrue , Ġ\" hey \", Ġnull Ġ] "). read List (). should . equal ( listOf ( true , Ġ" hey ", Ġnull )) Ċĉĉ ĉ reader ("[ Ġ[], Ġ[ Ġ 1 Ġ] Ġ] "). read List (). should . equal ( listOf ( emptyList < Any ?> (), ĠlistOf ( 1 ))) Ċĉ ĉ } ĊĊĉ ĉ it (" read ListBy Element () ") Ġ{ Ċĉĉ ĉ reader ("[ Ġtrue , Ġ\" hey \", Ġnull Ġ] "). read ListBy Element Ġ{ Ġread Value OrNull () Ġ} Ċĉĉĉ ĉ . should . equal ( listOf ( true , Ġ" hey ", Ġnull )) Ċĉ ĉ } ĊĊĉ ĉ it (" read List End () ") Ġ{ Ċĉĉ ĉ reader (" [] "). apply Ġ{ Ċĉĉĉ ĉ read List Start () Ċĉĉĉ ĉ nextToken . should . equal ( JSON Token . list End ) Ċĉĉĉ ĉ read List End () Ċĉĉĉ ĉ nextToken . should . be .` null ` Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read List OrNull () ") Ġ{ Ċĉĉ ĉ reader (" [] "). read List OrNull (). should . equal ( emptyList ()) Ċĉĉ ĉ reader ("[ Ġ\ t \ n \ r ]"). read List OrNull (). should . equal ( emptyList ()) Ċĉĉ ĉ reader ("[ 1 ]"). read List OrNull (). should . equal ( listOf ( 1 )) Ċĉĉ ĉ reader ("[ Ġtrue , Ġ\" hey \", Ġnull Ġ] "). read List OrNull (). should . equal ( listOf ( true , Ġ" hey ", Ġnull )) Ċĉĉ ĉ reader ("[ Ġ[], Ġ[ Ġ 1 Ġ] Ġ] "). read List OrNull (). should . equal ( listOf ( emptyList < Any ?> (), ĠlistOf ( 1 ))) Ċĉĉ ĉ reader (" null "). read List OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read List OrNull By Element () ") Ġ{ Ċĉĉ ĉ reader ("[ Ġtrue , Ġ\" hey \", Ġnull Ġ] "). read List OrNull By Element Ġ{ Ġread Value OrNull () Ġ} Ċĉĉĉ ĉ . should . equal ( listOf ( true , Ġ" hey ", Ġnull )) ĊĊĉĉ ĉ reader (" null "). read List OrNull By Element Ġ{ Ġread Value OrNull () Ġ} Ċĉĉĉ ĉ . should . equal ( null ) Ċĉ ĉ } ĊĊĉ ĉ it (" read List Start () ") Ġ{ Ċĉĉ ĉ reader (" [] "). apply Ġ{ Ċĉĉĉ ĉ nextToken . should . equal ( JSON Token . list Start ) Ċĉĉĉ ĉ read List Start () Ċĉĉĉ ĉ nextToken . should . equal ( JSON Token . list End ) Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read Long () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Long (). should . equal ( 0 L ) Ċĉĉ ĉ reader ("- 0 "). read Long (). should . equal ( 0 L ) Ċĉĉ ĉ reader (" 1 0 0 "). read Long (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 0 0 "). read Long (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Long (). should . equal ( 0 L ) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Long (). should . equal ( 0 L ) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Long (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Long (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Long (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Long (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 1 e 2 "). read Long (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 e 2 "). read Long (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Long (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Long (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). read Long (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). read Long (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Long (). should . equal ( 0 L ) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Long (). should . equal ( 0 L ) Ċĉ ĉ } ĊĊĉ ĉ it (" read Long OrNull () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Long OrNull (). should . equal ( 0 L ) Ċĉĉ ĉ reader ("- 0 "). read Long OrNull (). should . equal ( 0 L ) Ċĉĉ ĉ reader (" 1 0 0 "). read Long OrNull (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 0 0 "). read Long OrNull (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Long OrNull (). should . equal ( 0 L ) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Long OrNull (). should . equal ( 0 L ) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Long OrNull (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Long OrNull (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Long OrNull (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Long OrNull (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 1 e 2 "). read Long OrNull (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 e 2 "). read Long OrNull (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Long OrNull (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Long OrNull (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). read Long OrNull (). should . equal ( 1 0 0 L ) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). read Long OrNull (). should . equal (- 1 0 0 L ) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Long OrNull (). should . equal ( 0 L ) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Long OrNull (). should . equal ( 0 L ) Ċĉĉ ĉ reader (" null "). read Long OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read Map () ") Ġ{ Ċĉĉ ĉ reader ("{} "). read Map (). should . equal ( empty Map ()) Ċĉĉ ĉ reader ("{ Ġ\ t \ n \ r } "). read Map (). should . equal ( empty Map ()) Ċĉĉ ĉ reader ("{ \" key \": 1 } "). read Map (). should . equal ( map Of (" key " Ġto Ġ 1 )) Ċĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġtrue , Ġ\" key 1 \" Ġ: \" hey \", Ġ\" key 2 \" Ġ: Ġnull Ġ} "). read Map (). should . equal ( map Of ( Ċĉĉĉ ĉ " key 0 " Ġto Ġtrue , Ċĉĉĉ ĉ " key 1 " Ġto Ġ" hey ", Ċĉĉĉ ĉ " key 2 " Ġto Ġnull Ċĉĉ ĉ )) Ċĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġ{}, Ġ\" key 1 \": Ġ{ Ġ\" key \": Ġ 1 Ġ} Ġ} "). read Map (). should . equal ( map Of ( Ċĉĉĉ ĉ " key 0 " Ġto Ġempty Map < String , ĠAny >(), Ċĉĉĉ ĉ " key 1 " Ġto Ġmap Of (" key " Ġto Ġ 1 ) Ċĉĉ ĉ )) Ċĉĉ ĉ reader ("{ Ġ\" Ġ\ \\\ Ġ\\ \" Ġ\ \/ Ġ\\ b Ġ\\ f Ġ\\ n Ġ\\ r Ġ\\ t Ġ\\ uD 8 3 D \\ udc 3 6 Ġ\ ": Ġ 1 Ġ} "). read Map (). should . equal ( map Of ( Ċĉĉĉ ĉ " Ġ\\ Ġ\" Ġ/ Ġ\ b Ġ\ u 0 0 0 C Ġ\ n Ġ\ r Ġ\ t ĠðŁĲ ¶ Ġ" Ġto Ġ 1 Ċĉĉ ĉ )) Ċĉĉ ĉ reader ("{ Ġ\" 0 \": Ġ 0 , Ġ\" 2 \": Ġ 2 , Ġ\" 1 \": Ġ 1 , Ġ\" 3 \": Ġ 3 , Ġ\" - 1 \": Ġ- 1 Ġ} "). read Map (). toList (). should . equal ( listOf ( Ċĉĉĉ ĉ " 0 " Ġto Ġ 0 , Ċĉĉĉ ĉ " 2 " Ġto Ġ 2 , Ċĉĉĉ ĉ " 1 " Ġto Ġ 1 , Ċĉĉĉ ĉ " 3 " Ġto Ġ 3 , Ċĉĉĉ ĉ "- 1 " Ġto Ġ- 1 Ċĉĉ ĉ )) Ċĉ ĉ } ĊĊĉ ĉ it (" read Map By Element () ") Ġ{ Ċĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġtrue , Ġ\" key 1 \" Ġ: \" hey \", Ġ\" key 2 \" Ġ: Ġnull Ġ} ") Ċĉĉĉ ĉ . read Map By Element Ġ{ Ġread Map Key () Ġto Ġread Value OrNull () Ġ} Ċĉĉĉ ĉ . should Ċĉĉĉ ĉ . equal ( map Of ( Ċĉĉĉĉ ĉ " key 0 " Ġto Ġtrue , Ċĉĉĉĉ ĉ " key 1 " Ġto Ġ" hey ", Ċĉĉĉĉ ĉ " key 2 " Ġto Ġnull Ċĉĉĉ ĉ )) Ċĉ ĉ } ĊĊĉ ĉ it (" read Map By Element Value () ") Ġ{ Ċĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġtrue , Ġ\" key 1 \" Ġ: \" hey \", Ġ\" key 2 \" Ġ: Ġnull Ġ} ") Ċĉĉĉ ĉ . read Map By Element Value Ġ{ Ġread Value OrNull () Ġ} Ċĉĉĉ ĉ . should Ċĉĉĉ ĉ . equal ( map Of ( Ċĉĉĉĉ ĉ " key 0 " Ġto Ġtrue , Ċĉĉĉĉ ĉ " key 1 " Ġto Ġ" hey ", Ċĉĉĉĉ ĉ " key 2 " Ġto Ġnull Ċĉĉĉ ĉ )) Ċĉ ĉ } ĊĊĉ ĉ it (" read Map End () ") Ġ{ Ċĉĉ ĉ reader ("{} "). apply Ġ{ Ċĉĉĉ ĉ read Map Start () Ċĉĉĉ ĉ nextToken . should . equal ( JSON Token . map End ) Ċĉĉĉ ĉ read Map End () Ċĉĉĉ ĉ nextToken . should . be .` null ` Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read Map Key () ") Ġ{ Ċĉĉ ĉ reader ("{ \"\ "" ). apply Ġ{ Ċĉĉĉ ĉ read Map Start () Ċĉĉĉ ĉ read Map Key (). should . equal ("") Ċĉĉ ĉ } Ċĉĉ ĉ reader ("{ \" simple \"" ). apply Ġ{ Ċĉĉĉ ĉ read Map Start () Ċĉĉĉ ĉ read Map Key (). should . equal (" simple ") Ċĉĉ ĉ } Ċĉĉ ĉ reader ("{ \" Ġa Ġbit Ġlonger Ġ\"" ). apply Ġ{ Ċĉĉĉ ĉ read Map Start () Ċĉĉĉ ĉ read Map Key (). should . equal (" Ġa Ġbit Ġlonger Ġ") Ċĉĉ ĉ } Ċĉĉ ĉ reader ("{ \" a Ġdog : ĠðŁĲ ¶ \"" ). apply Ġ{ Ċĉĉĉ ĉ read Map Start () Ċĉĉĉ ĉ read Map Key (). should . equal (" a Ġdog : ĠðŁĲ ¶ ") Ċĉĉ ĉ } Ċĉĉ ĉ reader ("{ \" Ġ\ \\\ Ġ\\ \" Ġ\ \/ Ġ\\ b Ġ\\ f Ġ\\ n Ġ\\ r Ġ\\ t Ġ\\ uD 8 3 D \\ udc 3 6 Ġ\"" ). apply Ġ{ Ċĉĉĉ ĉ read Map Start () Ċĉĉĉ ĉ read Map Key (). should . equal (" Ġ\\ Ġ\" Ġ/ Ġ\ b Ġ\ u 0 0 0 C Ġ\ n Ġ\ r Ġ\ t ĠðŁĲ ¶ Ġ") Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read Map OrNull () ") Ġ{ Ċĉĉ ĉ reader ("{} "). read Map OrNull (). should . equal ( empty Map ()) Ċĉĉ ĉ reader ("{ Ġ\ t \ n \ r } "). read Map OrNull (). should . equal ( empty Map ()) Ċĉĉ ĉ reader ("{ \" key \": 1 } "). read Map OrNull (). should . equal ( map Of (" key " Ġto Ġ 1 )) Ċĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġtrue , Ġ\" key 1 \" Ġ: \" hey \", Ġ\" key 2 \" Ġ: Ġnull Ġ} "). read Map OrNull (). should . equal ( map Of ( Ċĉĉĉ ĉ " key 0 " Ġto Ġtrue , Ċĉĉĉ ĉ " key 1 " Ġto Ġ" hey ", Ċĉĉĉ ĉ " key 2 " Ġto Ġnull Ċĉĉ ĉ )) Ċĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġ{}, Ġ\" key 1 \": Ġ{ Ġ\" key \": Ġ 1 Ġ} Ġ} "). read Map OrNull (). should . equal ( map Of ( Ċĉĉĉ ĉ " key 0 " Ġto Ġempty Map < String , ĠAny >(), Ċĉĉĉ ĉ " key 1 " Ġto Ġmap Of (" key " Ġto Ġ 1 ) Ċĉĉ ĉ )) Ċĉĉ ĉ reader ("{ Ġ\" Ġ\ \\\ Ġ\\ \" Ġ\ \/ Ġ\\ b Ġ\\ f Ġ\\ n Ġ\\ r Ġ\\ t Ġ\\ uD 8 3 D \\ udc 3 6 Ġ\ ": Ġ 1 Ġ} "). read Map OrNull (). should . equal ( map Of ( Ċĉĉĉ ĉ " Ġ\\ Ġ\" Ġ/ Ġ\ b Ġ\ u 0 0 0 C Ġ\ n Ġ\ r Ġ\ t ĠðŁĲ ¶ Ġ" Ġto Ġ 1 Ċĉĉ ĉ )) Ċĉĉ ĉ reader ("{ Ġ\" 0 \": Ġ 0 , Ġ\" 2 \": Ġ 2 , Ġ\" 1 \": Ġ 1 , Ġ\" 3 \": Ġ 3 , Ġ\" - 1 \": Ġ- 1 Ġ} "). read Map OrNull ()?. toList (). should . equal ( listOf ( Ċĉĉĉ ĉ " 0 " Ġto Ġ 0 , Ċĉĉĉ ĉ " 2 " Ġto Ġ 2 , Ċĉĉĉ ĉ " 1 " Ġto Ġ 1 , Ċĉĉĉ ĉ " 3 " Ġto Ġ 3 , Ċĉĉĉ ĉ "- 1 " Ġto Ġ- 1 Ċĉĉ ĉ )) Ċĉĉ ĉ reader (" null "). read Map OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read Map OrNull By Element () ") Ġ{ Ċĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġtrue , Ġ\" key 1 \" Ġ: \" hey \", Ġ\" key 2 \" Ġ: Ġnull Ġ} ") Ċĉĉĉ ĉ . read Map OrNull By Element Ġ{ Ġread Map Key () Ġto Ġread Value OrNull () Ġ} Ċĉĉĉ ĉ . should Ċĉĉĉ ĉ . equal ( map Of ( Ċĉĉĉĉ ĉ " key 0 " Ġto Ġtrue , Ċĉĉĉĉ ĉ " key 1 " Ġto Ġ" hey ", Ċĉĉĉĉ ĉ " key 2 " Ġto Ġnull Ċĉĉĉ ĉ )) ĊĊĉĉ ĉ reader (" null ") Ċĉĉĉ ĉ . read Map OrNull By Element Ġ{ Ġread Map Key () Ġto Ġread Value OrNull () Ġ} Ċĉĉĉ ĉ . should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read Map OrNull By Element Value () ") Ġ{ Ċĉĉ ĉ reader ("{ Ġ\" key 0 \": Ġtrue , Ġ\" key 1 \" Ġ: \" hey \", Ġ\" key 2 \" Ġ: Ġnull Ġ} ") Ċĉĉĉ ĉ . read Map OrNull By Element Value Ġ{ Ġread Value OrNull () Ġ} Ċĉĉĉ ĉ . should Ċĉĉĉ ĉ . equal ( map Of ( Ċĉĉĉĉ ĉ " key 0 " Ġto Ġtrue , Ċĉĉĉĉ ĉ " key 1 " Ġto Ġ" hey ", Ċĉĉĉĉ ĉ " key 2 " Ġto Ġnull Ċĉĉĉ ĉ )) ĊĊĉĉ ĉ reader (" null ") Ċĉĉĉ ĉ . read Map OrNull By Element Value Ġ{ Ġread Value OrNull () Ġ} Ċĉĉĉ ĉ . should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read Map Start () ") Ġ{ Ċĉĉ ĉ reader ("{} "). apply Ġ{ Ċĉĉĉ ĉ nextToken . should . equal ( JSON Token . map Start ) Ċĉĉĉ ĉ read Map Start () Ċĉĉĉ ĉ nextToken . should . equal ( JSON Token . map End ) Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" read Null () ") Ġ{ Ċĉĉ ĉ ( reader (" null "). read Null () Ġas ĠAny ?). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read Number () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Number (). should . equal ( 0 ) Ċĉĉ ĉ reader ("- 0 "). read Number (). should . equal ( 0 ) Ċĉĉ ĉ reader (" 1 0 0 "). read Number (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 0 0 "). read Number (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Number (). should . equal ( 0 . 0 ) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Number (). should . equal (- 0 . 0 ) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Number (). should . equal ( 1 0 0 . 0 0 1 ) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Number (). should . equal (- 1 0 0 . 0 0 1 ) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Number (). should . equal ( 1 0 0 . 9 9 9 ) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Number (). should . equal (- 1 0 0 . 9 9 9 ) Ċĉĉ ĉ reader (" 2 1 4 7 4 8 3 6 4 7 "). read Number (). should . equal ( 2 1 4 7 4 8 3 6 4 7 ) Ċĉĉ ĉ reader ("- 2 1 4 7 4 8 3 6 4 8 "). read Number (). should . equal (- 2 1 4 7 4 8 3 6 4 8 ) Ċĉĉ ĉ reader (" 2 1 4 7 4 8 3 6 4 8 "). read Number (). should . equal ( 2 1 4 7 4 8 3 6 4 8 L ) Ċĉĉ ĉ reader ("- 2 1 4 7 4 8 3 6 4 9 "). read Number (). should . equal (- 2 1 4 7 4 8 3 6 4 9 L ) Ċĉĉ ĉ reader (" 2 1 4 7 4 8 3 6 4 7 "). read Number (). should . equal ( 2 1 4 7 4 8 3 6 4 7 ) Ċĉĉ ĉ reader ("- 2 1 4 7 4 8 3 6 4 8 "). read Number (). should . equal (- 2 1 4 7 4 8 3 6 4 8 ) Ċĉĉ ĉ reader (" 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 "). read Number (). should . equal ( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 L ) Ċĉĉ ĉ reader ("- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 "). read Number (). should . equal (- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 L Ġ- Ġ 1 ) Ġ// Ġhttps :// yout rack . jetbrains . com / issue / KT - 1 7 1 7 2 Ċĉĉ ĉ reader (" 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 "). read Number (). should . equal ( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 . 0 ) Ċĉĉ ĉ reader ("- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 "). read Number (). should . equal (- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 . 0 ) Ċĉĉ ĉ reader (" 1 e 2 "). read Number (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 e 2 "). read Number (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Number (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Number (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Number (). should . equal ( 0 . 0 1 ) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Number (). should . equal (- 0 . 0 1 ) Ċĉĉ ĉ reader (" 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Number (). should . equal ( 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Number (). should . equal (- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 e 2 0 0 0 0 "). read Number (). should . equal ( Double . POSITIVE _ INFINITY ) Ċĉĉ ĉ reader ("- 1 e 2 0 0 0 0 "). read Number (). should . equal ( Double . NEGATIVE _ INFINITY ) Ċĉ ĉ } ĊĊĉ ĉ it (" read Number OrNull () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Number OrNull (). should . equal ( 0 ) Ċĉĉ ĉ reader ("- 0 "). read Number OrNull (). should . equal ( 0 ) Ċĉĉ ĉ reader (" 1 0 0 "). read Number OrNull (). should . equal ( 1 0 0 ) Ċĉĉ ĉ reader ("- 1 0 0 "). read Number OrNull (). should . equal (- 1 0 0 ) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Number OrNull (). should . equal ( 0 . 0 ) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Number OrNull (). should . equal (- 0 . 0 ) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Number OrNull (). should . equal ( 1 0 0 . 0 0 1 ) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Number OrNull (). should . equal (- 1 0 0 . 0 0 1 ) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Number OrNull (). should . equal ( 1 0 0 . 9 9 9 ) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Number OrNull (). should . equal (- 1 0 0 . 9 9 9 ) Ċĉĉ ĉ reader (" 2 1 4 7 4 8 3 6 4 7 "). read Number OrNull (). should . equal ( 2 1 4 7 4 8 3 6 4 7 ) Ċĉĉ ĉ reader ("- 2 1 4 7 4 8 3 6 4 8 "). read Number OrNull (). should . equal (- 2 1 4 7 4 8 3 6 4 8 ) Ċĉĉ ĉ reader (" 2 1 4 7 4 8 3 6 4 8 "). read Number OrNull (). should . equal ( 2 1 4 7 4 8 3 6 4 8 L ) Ċĉĉ ĉ reader ("- 2 1 4 7 4 8 3 6 4 9 "). read Number OrNull (). should . equal (- 2 1 4 7 4 8 3 6 4 9 L ) Ċĉĉ ĉ reader (" 2 1 4 7 4 8 3 6 4 7 "). read Number OrNull (). should . equal ( 2 1 4 7 4 8 3 6 4 7 ) Ċĉĉ ĉ reader ("- 2 1 4 7 4 8 3 6 4 8 "). read Number OrNull (). should . equal (- 2 1 4 7 4 8 3 6 4 8 ) Ċĉĉ ĉ reader (" 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 "). read Number OrNull (). should . equal ( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 L ) Ċĉĉ ĉ reader ("- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 "). read Number OrNull (). should . equal (- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 L Ġ- Ġ 1 ) Ġ// Ġhttps :// yout rack . jetbrains . com / issue / KT - 1 7 1 7 2 Ċĉĉ ĉ reader (" 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 "). read Number OrNull (). should . equal ( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 8 . 0 ) Ċĉĉ ĉ reader ("- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 "). read Number OrNull (). should . equal (- 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 9 . 0 ) Ċĉĉ ĉ reader (" 1 e 2 "). read Number OrNull (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 e 2 "). read Number OrNull (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Number OrNull (). should . equal ( 1 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Number OrNull (). should . equal (- 1 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Number OrNull (). should . equal ( 0 . 0 1 ) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Number OrNull (). should . equal (- 0 . 0 1 ) Ċĉĉ ĉ reader (" 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Number OrNull (). should . equal ( 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 ) Ċĉĉ ĉ reader ("- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "). read Number OrNull (). should . equal (- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 ) Ċĉĉ ĉ reader (" 1 e 2 0 0 0 0 "). read Number OrNull (). should . equal ( Double . POSITIVE _ INFINITY ) Ċĉĉ ĉ reader ("- 1 e 2 0 0 0 0 "). read Number OrNull (). should . equal ( Double . NEGATIVE _ INFINITY ) Ċĉĉ ĉ reader (" null "). read Number OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" read Short () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Short (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader ("- 0 "). read Short (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader (" 1 0 0 "). read Short (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 0 0 "). read Short (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Short (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Short (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Short (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Short (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Short (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Short (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 1 e 2 "). read Short (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 e 2 "). read Short (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Short (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Short (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). read Short (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). read Short (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Short (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Short (). should . equal ( 0 . to Short ()) Ċĉ ĉ } ĊĊĉ ĉ it (" read Short OrNull () ") Ġ{ Ċĉĉ ĉ reader (" 0 "). read Short OrNull (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader ("- 0 "). read Short OrNull (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader (" 1 0 0 "). read Short OrNull (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 0 0 "). read Short OrNull (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 0 . 0 0 0 "). read Short OrNull (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader ("- 0 . 0 0 0 "). read Short OrNull (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader (" 1 0 0 . 0 0 1 "). read Short OrNull (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 0 0 . 0 0 1 "). read Short OrNull (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 1 0 0 . 9 9 9 "). read Short OrNull (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 0 0 . 9 9 9 "). read Short OrNull (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 1 e 2 "). read Short OrNull (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 e 2 "). read Short OrNull (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 1 . 0 e 2 "). read Short OrNull (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 . 0 e 2 "). read Short OrNull (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 1 . 0 e + 2 "). read Short OrNull (). should . equal ( 1 0 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 . 0 e + 2 "). read Short OrNull (). should . equal ((- 1 0 0 ). to Short ()) Ċĉĉ ĉ reader (" 1 . 0 e - 2 "). read Short OrNull (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader ("- 1 . 0 e - 2 "). read Short OrNull (). should . equal ( 0 . to Short ()) Ċĉĉ ĉ reader (" null "). read Short OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" readString () ") Ġ{ Ċĉĉ ĉ reader (" \"\ "" ). readString (). should . equal ("") Ċĉĉ ĉ reader ("\" \\ u 0 0 2 2 \"" ). readString (). should . equal ("\" ") Ċĉĉ ĉ reader ("\" simple \"" ). readString (). should . equal (" simple ") Ċĉĉ ĉ reader ("\" Ġa Ġbit Ġlonger Ġ\"" ). readString (). should . equal (" Ġa Ġbit Ġlonger Ġ") Ċĉĉ ĉ reader ("\" a Ġdog : ĠðŁĲ ¶ \"" ). readString (). should . equal (" a Ġdog : ĠðŁĲ ¶ ") Ċĉĉ ĉ reader ("\" Ġ\ \\\ Ġ\\ \" Ġ\ \/ Ġ\\ b Ġ\\ f Ġ\\ n Ġ\\ r Ġ\\ t Ġ\\ uD 8 3 D \\ udc 3 6 Ġ\"" ). readString (). should . equal (" Ġ\\ Ġ\" Ġ/ Ġ\ b Ġ\ u 0 0 0 C Ġ\ n Ġ\ r Ġ\ t ĠðŁĲ ¶ Ġ") Ċĉĉ ĉ reader ("{ \" key \"" ). apply Ġ{ Ġread Map Start (); Ġread String (). should . equal (" key ") Ġ} Ċĉ ĉ } ĊĊĉ ĉ it (" readString OrNull () ") Ġ{ Ċĉĉ ĉ reader (" \"\ "" ). readString OrNull (). should . equal ("") Ċĉĉ ĉ reader ("\" \\ u 0 0 2 2 \"" ). readString OrNull (). should . equal ("\" ") Ċĉĉ ĉ reader ("\" simple \"" ). readString OrNull (). should . equal (" simple ") Ċĉĉ ĉ reader ("\" Ġa Ġbit Ġlonger Ġ\"" ). readString OrNull (). should . equal (" Ġa Ġbit Ġlonger Ġ") Ċĉĉ ĉ reader ("\" a Ġdog : ĠðŁĲ ¶ \"" ). readString OrNull (). should . equal (" a Ġdog : ĠðŁĲ ¶ ") Ċĉĉ ĉ reader ("\" Ġ\ \\\ Ġ\\ \" Ġ\ \/ Ġ\\ b Ġ\\ f Ġ\\ n Ġ\\ r Ġ\\ t Ġ\\ uD 8 3 D \\ udc 3 6 Ġ\"" ). readString OrNull (). should . equal (" Ġ\\ Ġ\" Ġ/ Ġ\ b Ġ\ u 0 0 0 C Ġ\ n Ġ\ r Ġ\ t ĠðŁĲ ¶ Ġ") Ċĉĉ ĉ reader (" null "). readString OrNull (). should . be .` null ` Ċĉ ĉ } ĊĊĉ ĉ it (" readValue () ") Ġ{ Ċĉĉ ĉ reader ("[ true , Ġ 0 , Ġ[], Ġ{}, Ġ\" \", Ġ{ \" \": true }] "). apply Ġ{ Ċĉĉĉ ĉ read From List Ġ{ Ċĉĉĉĉ ĉ readValue (). should . equal ( true ) Ċĉĉĉĉ ĉ readValue (). should . equal ( 0 ) Ċĉĉĉĉ ĉ readValue (). should . equal ( emptyList < Any ?> ()) Ċĉĉĉĉ ĉ readValue (). should . equal ( empty Map < String , ĠAny ?> ()) Ċĉĉĉĉ ĉ readValue (). should . equal ("") Ċĉĉĉĉ ĉ read From Map Ġ{ Ċĉĉĉĉĉ ĉ readValue (). should . equal ("") Ċĉĉĉĉĉ ĉ readValue (). should . equal ( true ) Ċĉĉĉĉ ĉ } Ċĉĉĉ ĉ } Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" readValue OrNull () ") Ġ{ Ċĉĉ ĉ reader ("[ null , Ġtrue , Ġ 0 , Ġ[], Ġ{}, Ġ\" \", Ġ{ \" \": true }] "). apply Ġ{ Ċĉĉĉ ĉ read From List Ġ{ Ċĉĉĉĉ ĉ readValue OrNull (). should . be .` null ` Ċĉĉĉĉ ĉ readValue OrNull (). should . equal ( true ) Ċĉĉĉĉ ĉ readValue OrNull (). should . equal ( 0 ) Ċĉĉĉĉ ĉ readValue OrNull (). should . equal ( emptyList < Any ?> ()) Ċĉĉĉĉ ĉ readValue OrNull (). should . equal ( empty Map < String , ĠAny ?> ()) Ċĉĉĉĉ ĉ readValue OrNull (). should . equal ("") Ċĉĉĉĉ ĉ read From Map Ġ{ Ċĉĉĉĉĉ ĉ readValue OrNull (). should . equal ("") Ċĉĉĉĉĉ ĉ readValue OrNull (). should . equal ( true ) Ċĉĉĉĉ ĉ } Ċĉĉĉ ĉ } Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" skip Value () ") Ġ{ Ċĉĉ ĉ reader ("[ null , Ġ 0 , Ġ[], Ġ{}, Ġ\" \", Ġ{ \" \": true }] "). apply Ġ{ Ċĉĉĉ ĉ read From List Ġ{ Ċĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . null Value ) Ċĉĉĉĉ ĉ skip Value () Ċĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . number Value ) Ċĉĉĉĉ ĉ skip Value () Ċĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . list Start ) Ċĉĉĉĉ ĉ skip Value () Ċĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . map Start ) Ċĉĉĉĉ ĉ skip Value () Ċĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . stringValue ) Ċĉĉĉĉ ĉ skip Value () Ċĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . map Start ) Ċĉĉĉĉ ĉ read From Map Ġ{ Ċĉĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . map Key ) Ċĉĉĉĉĉ ĉ skip Value () Ċĉĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . boolean Value ) Ċĉĉĉĉĉ ĉ skip Value () Ċĉĉĉĉĉ ĉ nextToken . should . equal ( JSON Token . map End ) Ċĉĉĉĉ ĉ } Ċĉĉĉ ĉ } Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ it (" large Ġinput ") Ġ{ Ċĉĉ ĉ reader ( Resources . stream (" large . json "). reader ()). apply Ġ{ Ċĉĉĉ ĉ val Ġvalue Ġ= Ġread Map () ĊĊĉĉĉ ĉ val Ġinner Map Ġ= Ġ( 0 Ġ.. Ġ 1 0 0 ). associate Ġ{ Ġit . toString () Ġto Ġit Ġ} Ċĉĉĉ ĉ val Ġouter Map Ġ= Ġ( 0 Ġ.. Ġ 1 0 0 ). associate Ġ{ Ġit . toString () Ġto Ġinner Map Ġ} ĊĊĉĉĉ ĉ value . should . equal ( outer Map ) Ċĉĉ ĉ } Ċĉ ĉ } Ċ ĉ } Ċ }) Ġ{ ĊĊ ĉ private Ġobject ĠDummy 1 Ċ ĉ private Ġobject ĠDummy 2 Ċ ĉ private Ġobject ĠDummy 3 Ċ } ĊĊ Ċ // ĠTODO Ġmove Ġthe Ġfollowing Ġmethods Ġinside Ġthe Ġobject Ġabove Ġonce ĠK T - 1 9 7 9 6 Ġis Ġfixed Ċ // Ġhttps :// yout rack . jetbrains . com / issue / KT - 1 9 7 9 6 Ċ Ċ @ Suppress (" unused ") Ċ private Ġfun ĠTest Body . reader ( reader : ĠReader ): ĠJSON Reader Ġ= Ċ ĉ Standard Reader ( TextInput ( reader )) Ċ Ċ @ Suppress (" unused ") Ċ private Ġfun ĠTest Body . reader ( string : ĠString ): ĠJSON Reader Ġ= Ċ ĉ Standard Reader ( TextInput ( String Reader ( string ))) Ċ