Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
larshum committed Sep 7, 2023
1 parent d28e019 commit 97d9246
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stdlib/cuda/well-formed.mc
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,14 @@ utest checkWellFormedExpr recUpdate with [CudaExprError recordUpdateExpr]
using eqSeq eqCudaError in

let t = nameSym "Tree" in
let recursiveConstructorExpr = condef_ "Con" (tyarrow_ (ntyvar_ t) (ntyvar_ t)) in
let recursiveConstructorExpr =
ncondef_ (nameSym "Con") (tyarrow_ (tytuple_ [ntycon_ t, ntycon_ t]) (ntycon_ t))
in
let conDef = bindall_ [
ntype_ t [] (tyvariant_ []),
recursiveConstructorExpr,
int_ 0] in
let expectedExpr = preprocess (bind_ recursiveConstructorExpr (int_ 0)) in
let expectedExpr = bind_ recursiveConstructorExpr (int_ 0) in
-- NOTE(larshum, 2022-07-12): Skip the first expression (a type) since we
-- cannot compare those.
utest tail (checkWellFormedExpr conDef) with [CudaExprError expectedExpr]
Expand Down

0 comments on commit 97d9246

Please sign in to comment.