Removed inf and nan old syntax

This commit is contained in:
Louis Rubet 2024-01-25 16:11:03 +01:00
parent 38c1d22789
commit 3ce83ab1b6
5 changed files with 24 additions and 45 deletions

View file

@ -66,11 +66,11 @@
`del`
## inf nan
## Inf nan
`+inf inf -inf nan`
`+Inf Inf -Inf 0 0 /`
-> stack should be inf, inf, -inf, nan
-> stack should be Inf, Inf, -Inf, NaN
`del`

View file

@ -18,14 +18,13 @@
`del`
## cplx inf nan
## cplx Inf
```
(inf,3)
(-inf,nan) (inf,-inf)
(Inf,3) (Inf,-Inf)
```
-> stack should be (inf,3), (-inf,nan), (inf,-inf)
-> stack should be (Inf,3), (Inf,-Inf)
`del`
@ -37,14 +36,6 @@
`del`
## unterminated 2
`(-inf, nan`
-> stack should be (-inf,nan)
`del`
## unterminated err
```

View file

@ -50,10 +50,10 @@
```
4 fix
nan @nan@ -nan inf -inf @inf@ -@inf@
inf -inf
```
-> stack should be nan, nan, nan, inf, -inf, inf, -inf
-> stack should be Inf, -Inf
`del default`
@ -330,7 +330,7 @@ nan @nan@ -nan inf -inf @inf@ -@inf@
`-0 bin 0 bin / 0 3 base 0 3 base /`
-> stack should be nan, nan
-> stack should be NaN, NaN
`del default`

View file

@ -137,20 +137,16 @@ dec swap dec swap
`del default`
## real inf, nan
## real Inf, NaN
```
inf
@inf@
+inf
+@inf@
-inf
-@inf@
nan
@nan@
Inf
+Inf
-Inf
0 0 /
```
-> stack should be inf, inf, inf, inf, -inf, -inf, nan, nan
-> stack should be Inf, Inf, Inf, Inf, -Inf, -Inf, NaN, NaN
`del`
@ -212,7 +208,7 @@ pi
## round (3)
`"toward +inf" round`
`"toward +Inf" round`
-> error should be 0
@ -220,7 +216,7 @@ pi
## round (4)
`"toward -inf" round`
`"toward -Inf" round`
-> error should be 0
@ -613,15 +609,15 @@ pi
## mant (2)
`inf mant`
`Inf mant`
-> error should be 4
`-inf mant`
`-Inf mant`
-> error should be 4
`nan mant`
`0 0 / mant`
-> error should be 4
@ -637,15 +633,15 @@ pi
## xpon (2)
`inf xpon`
`Inf xpon`
-> error should be 4
`-inf xpon`
`-Inf xpon`
-> error should be 4
`nan xpon`
`0 0 / xpon`
-> error should be 4

View file

@ -28,21 +28,13 @@
## entry (4)
`(nan,+inf)`
-> stack should be (nan,inf)
`del`
## entry (5)
`(0x1234,0x1010)`
-> stack should be (0x1234,0x1010)
`del`
## entry (6)
## entry (5)
`(0b11,0b101)`