Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mosml/src/test fails testing: "diff result result.ok" #53

Open
flemminglandersen opened this issue Jul 13, 2018 · 0 comments
Open

mosml/src/test fails testing: "diff result result.ok" #53

flemminglandersen opened this issue Jul 13, 2018 · 0 comments

Comments

@flemminglandersen
Copy link

After build and install of mosml from the sources and performing the test, it fails with:

bash-3.2$ cd ${HOME}/src/test
bash-3.2$ make clean
rm -f result
bash-3.2$ make test
make: *** No rule to make target `test'. Stop.
bash-3.2$ make
rm -f result
mosml -P full test.sml > result 2>&1
mosml -P full < ovlfail.sml >> result 2>&1
mosml -P full < constfai.sml >> result 2>&1
mosml -P full < testcon.sml >> result 2>&1
mosml -P full < testty.sml >> result 2>&1
mosml -P full < typerr.sml >> result 2>&1
mosml -P full < recfail.sml >> result 2>&1
bash-3.2$ !di
diff result result.ok
1c1
< Moscow ML version 2.10

Moscow ML version 2.01a (January 2004)
327,330c327,330
< > val it = "WRONG" : string
< > val it = "WRONG" : string
< > val it = "WRONG" : string
< > val it = "WRONG" : string


val it = "OK" : string
val it = "OK" : string
val it = "OK" : string
val it = "OK" : string
336,338c336,338
< > val it = "WRONG" : string
< > val it = "WRONG" : string
< > val it = "WRONG" : string


val it = "OK" : string
val it = "OK" : string
val it = "OK" : string
340c340
< > val it = "WRONG" : string


val it = "OK" : string
356c356
< > val it = "WRONG" : string


val it = "OK" : string
365,366c365,366
< > val it = "WRONG" : string
< > val it = "WRONG" : string


val it = "OK" : string
val it = "OK" : string
500c500
< User: 0.021 System: 0.000 GC: 0.000 Real: 0.021


User: 0.390 System: 0.000 GC: 0.000 Real: 0.390
503c503
< User: 0.033 System: 0.000 GC: 0.000 Real: 0.033


User: 0.400 System: 0.000 GC: 0.000 Real: 0.391
518c518
< > val test3 = false : bool


val test3 = true : bool
945c945
< Moscow ML version 2.10


Moscow ML version 2.01a (January 2004)
1079c1079
< Moscow ML version 2.10


Moscow ML version 2.01a (January 2004)
1081,1086c1081,1104
< - > val fail1 = ~1073741825 : int
< - > val fail2 = 1073741824 : int
< - > val fail3 = ~1073741825 : int
< - > val fail4 = 1073741824 : int
< - > val fail5 = 0wx80000000 : word
< - > val fail6 = 0wx80000000 : word


  • ! Toplevel input:
    ! val fail1 = ~1073741825;
    ! ^^^^^^^^^^^
    ! Lexical error: integer constant is too large.
  • ! Toplevel input:
    ! val fail2 = 1073741824;
    ! ^^^^^^^^^^
    ! Lexical error: integer constant is too large.
  • ! Toplevel input:
    ! val fail3 = ~0x40000001;
    ! ^^^^^^^^^^^
    ! Lexical error: integer constant is too large.
  • ! Toplevel input:
    ! val fail4 = 0x40000000;
    ! ^^^^^^^^^^
    ! Lexical error: integer constant is too large.
  • ! Toplevel input:
    ! val fail5 = 0w2147483648;
    ! ^^^^^^^^^^^^
    ! Lexical error: word constant is too large.
  • ! Toplevel input:
    ! val fail6 = 0wx80000000;
    ! ^^^^^^^^^^^
    ! Lexical error: word constant is too large.
    1120c1138
    < Moscow ML version 2.10

Moscow ML version 2.01a (January 2004)
1267c1285
< Moscow ML version 2.10


Moscow ML version 2.01a (January 2004)
1317c1335
< Moscow ML version 2.10


Moscow ML version 2.01a (January 2004)
1463c1481
< Moscow ML version 2.10


Moscow ML version 2.01a (January 2004)
bash-3.2$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant