Skip to content

Commit

Permalink
make avg require test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bcpeinhardt committed Nov 28, 2024
1 parent 020b07f commit 90b4353
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions priv/static/squared_away.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5813,7 +5813,7 @@ function interpret(loop$env, loop$expr) {
throw makeError(
"let_assert",
"squared_away/squared_away_lang/interpreter",
274,
275,
"",
"Pattern match failed, no pattern matched the value.",
{ value: v }
Expand All @@ -5839,7 +5839,7 @@ function interpret(loop$env, loop$expr) {
throw makeError(
"let_assert",
"squared_away/squared_away_lang/interpreter",
284,
286,
"",
"Pattern match failed, no pattern matched the value.",
{ value: v }
Expand All @@ -5860,7 +5860,7 @@ function interpret(loop$env, loop$expr) {
throw makeError(
"let_assert",
"squared_away/squared_away_lang/interpreter",
294,
296,
"",
"Pattern match failed, no pattern matched the value.",
{ value: v }
Expand Down Expand Up @@ -8871,6 +8871,8 @@ function view(model) {
return ["#FFA500", "#FFF8E1"];
} else if (te instanceof BuiltinSum2) {
return ["#FFA500", "#FFF8E1"];
} else if (te instanceof BuiltinAvg) {
return ["#FFA500", "#FFF8E1"];
} else if (te instanceof Group2) {
return ["#FFA500", "#FFF8E1"];
} else if (te instanceof UnaryOp2) {
Expand Down
1 change: 1 addition & 0 deletions src/squared_away.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ fn view(model: Model) -> element.Element(Msg) {
case te {
typed_expr.BinaryOp(_, _, _, _)
| typed_expr.BuiltinSum(_, _)
| typed_expr.BuiltinAvg(_, _)
| typed_expr.Group(_, _)
| typed_expr.UnaryOp(_, _, _) -> #(
"#FFA500",
Expand Down

0 comments on commit 90b4353

Please sign in to comment.