Skip to content

Commit

Permalink
(green) Fixed the test issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWilson committed Jan 27, 2024
1 parent 96bc527 commit 3379f17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/Chargen.Accept.fs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ let tests =
Unchecked(Expect "Broadsword +5", Expect ["Broadsword"; "Sword!"])
Unchecked(Expect "Shortsword +5", Expect ["Shortsword"; "Sword!"])
])
Checked(Expect "Fast-Draw (Sword) +1 and Fast-Draw (Dagger) +1", Expect ["Fast-Draw (Sword) +1 and Fast-Draw (Dagger) +1"], Expect [])
Fragment [
Checked(Expect "Fast-Draw (Sword) +1", Expect ["Fast-Draw (Sword) +1 and Fast-Draw (Dagger) +1"; "Fast-draws"], Expect [])
Checked(Expect "Fast-Draw (Dagger) +1", Expect ["Fast-Draw (Sword) +1 and Fast-Draw (Dagger) +1"; "Fast-draws"], Expect [])
]
]) -> ()
| v -> matchfail v // maybe we got the wrong number of NumberInputs from the Unconditional or something. Would be nice to have the error message say exactly what went wrong,
// but Expect active pattern isn't valid as an input to Fragment/Unconditional/etc. so we can't just Expect a specific list of children. Although... maybe we can refactor
Expand Down

0 comments on commit 3379f17

Please sign in to comment.