Skip to content

Commit

Permalink
more coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Brown committed Sep 22, 2023
1 parent 28fac3a commit 36464e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/syntax/GATs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ function fromexpr!(c::Context, e, bound::TypeScope, ::Type{AlgTerm}; constants=t
end
e::Expr => error("could not parse AlgTerm from $e")
constant::Constant => AlgTerm(constant)
i::Ident => AlgTerm(i)
end
end

Expand Down
2 changes: 2 additions & 0 deletions test/syntax/Scopes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ xz_scope = Scope([bind_x, bind_z])
@test valtype(xz_scope) == String

c = ScopeList([xy_scope, xz_scope])
@test sprint(show, c)[1:2 == "[{"

@test_throws ErrorException Scopes.flatten(c)

@test getscope(c, 1) == xy_scope
Expand Down

0 comments on commit 36464e9

Please sign in to comment.