fix contract-stronger bug

This commit is contained in:
Robby Findler 2018-05-06 20:49:09 -05:00
parent f231cb2003
commit 76c404dffc
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,7 @@
(ctest #f contract-stronger? (>/c 2) (>/c 3))
(ctest #f contract-stronger? (</c 3) (</c 2))
(ctest #t contract-stronger? (</c 2) (</c 3))
(ctest #t contract-stronger? (</c 2) (>/c 2))
(ctest #f contract-stronger? (</c 2) (>/c 2))
(ctest #t contract-stronger? (</c 2) (<=/c 2))
(ctest #f contract-stronger? (</c 2) (>=/c 2))
(ctest #f contract-stronger? (>/c 2) (<=/c 2))

View File

@ -263,7 +263,8 @@
[(and (<-ctc? this) (<-ctc? that))
(<= this-x (</>-ctc-x that))]
[(and (>-ctc? this) (>-ctc? that))
(>= this-x (</>-ctc-x that))])]
(>= this-x (</>-ctc-x that))]
[else #f])]
[(between/c-s? that)
(cond
[(<-ctc? this)