cryptol/tests/issues/issue395.icry.stdout
Robert Dockins d891fde0c7 Fix a corner case for join on 0-length inner sequences.
Both the standard and the reference interpreter were producing
incorrect behaviors.  The correct behavior is to return an
empty sequence.

Fixes #395.
2017-05-10 17:49:37 -07:00

20 lines
225 B
Plaintext

Loading module Cryptol
(join (zero : [inf][0])) : [0]
0x0
True
[]
(join (zero : [1000][0])) : [0]
0x0
True
[]
Q.E.D.
(join (zero : [inf][0][32])) : [0][32]
[]
True
[]
(join (zero : [1000][0][32])) : [0][32]
[]
True
[]
Q.E.D.