mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove documentation for unsupported cases
Turns out the `case` keyword does some extra magic that isn't trivially implemented.
This commit is contained in:
parent
45cdef021b
commit
4a7167597b
1 changed files with 0 additions and 4 deletions
|
@ -23,12 +23,8 @@ module Spectator::DSL
|
||||||
# ```
|
# ```
|
||||||
# expect(1 + 2).to be(3)
|
# expect(1 + 2).to be(3)
|
||||||
# expect(5).to be(Int32) # Using `#be_a` instead is recommened here.
|
# expect(5).to be(Int32) # Using `#be_a` instead is recommened here.
|
||||||
# expect(5).to be(.odd?) # Using `#be_odd` instead is recommended here.
|
|
||||||
# expect(tuple).to be({1, 2})
|
# expect(tuple).to be({1, 2})
|
||||||
# ```
|
# ```
|
||||||
#
|
|
||||||
# See https://crystal-lang.org/reference/syntax_and_semantics/case.html
|
|
||||||
# for more examples of what could be used here.
|
|
||||||
macro be(expected)
|
macro be(expected)
|
||||||
::Spectator::Matchers::CaseMatcher.new({{expected.stringify}}, {{expected}})
|
::Spectator::Matchers::CaseMatcher.new({{expected.stringify}}, {{expected}})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue