Adding log.gd
This commit is contained in:
parent
eb32d6614e
commit
4522259397
547 changed files with 46844 additions and 0 deletions
36
addons/gdUnit4/test/matchers/ChainedArgumentMatcherTest.gd
Normal file
36
addons/gdUnit4/test/matchers/ChainedArgumentMatcherTest.gd
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# GdUnit generated TestSuite
|
||||
class_name ChainedArgumentMatcherTest
|
||||
extends GdUnitTestSuite
|
||||
|
||||
# TestSuite generated from
|
||||
const __source = 'res://addons/gdUnit4/src/matchers/ChainedArgumentMatcher.gd'
|
||||
|
||||
|
||||
func test_is_match_one_arg():
|
||||
var matchers = [
|
||||
EqualsArgumentMatcher.new("foo")
|
||||
]
|
||||
var matcher := ChainedArgumentMatcher.new(matchers)
|
||||
|
||||
assert_bool(matcher.is_match(["foo"])).is_true()
|
||||
assert_bool(matcher.is_match(["bar"])).is_false()
|
||||
|
||||
|
||||
func test_is_match_two_arg():
|
||||
var matchers = [
|
||||
EqualsArgumentMatcher.new("foo"),
|
||||
EqualsArgumentMatcher.new("value1")
|
||||
]
|
||||
var matcher := ChainedArgumentMatcher.new(matchers)
|
||||
|
||||
assert_bool(matcher.is_match(["foo", "value1"])).is_true()
|
||||
assert_bool(matcher.is_match(["foo", "value2"])).is_false()
|
||||
assert_bool(matcher.is_match(["bar", "value1"])).is_false()
|
||||
|
||||
|
||||
func test_is_match_different_arg_and_matcher():
|
||||
var matchers = [
|
||||
EqualsArgumentMatcher.new("foo")
|
||||
]
|
||||
var matcher := ChainedArgumentMatcher.new(matchers)
|
||||
assert_bool(matcher.is_match(["foo", "value"])).is_false()
|
||||
Loading…
Add table
Add a link
Reference in a new issue