Skip to content

Commit

Permalink
Be more strict, but allow tests to pass. Suspect still a problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpressey committed Feb 17, 2022
1 parent 4172d72 commit cc1d94f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/castile/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ def typeof(x):
return "Type(string:)"
elif isinstance(x, StructDict):
return x.name
elif isinstance(x, TaggedValue):
return x.tag
else:
return "wtf"
raise NotImplementedError(x)


class Program(object):
Expand Down
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if [ ! x`command -v gcc` = x ]; then
APPLIANCES="$APPLIANCES tests/appliances/castile-c-c.md"
fi

#APPLIANCES="tests/appliances/castile.py3.md"
#APPLIANCES="tests/appliances/castile-c-c.md"
#APPLIANCES="tests/appliances/castile-c-javascript.md"

Expand Down

0 comments on commit cc1d94f

Please sign in to comment.