Adding log.gd
This commit is contained in:
parent
eb32d6614e
commit
4522259397
547 changed files with 46844 additions and 0 deletions
29
addons/gdUnit4/test/matchers/AnyArgumentMatcherTest.gd
Normal file
29
addons/gdUnit4/test/matchers/AnyArgumentMatcherTest.gd
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# GdUnit generated TestSuite
|
||||
class_name AnyArgumentMatcherTest
|
||||
extends GdUnitTestSuite
|
||||
|
||||
# TestSuite generated from
|
||||
const __source = 'res://addons/gdUnit4/src/matchers/AnyArgumentMatcher.gd'
|
||||
|
||||
|
||||
func test_is_match():
|
||||
var matcher := AnyArgumentMatcher.new()
|
||||
|
||||
assert_bool(matcher.is_match(null)).is_true()
|
||||
assert_bool(matcher.is_match("")).is_true()
|
||||
assert_bool(matcher.is_match("abc")).is_true()
|
||||
assert_bool(matcher.is_match(true)).is_true()
|
||||
assert_bool(matcher.is_match(false)).is_true()
|
||||
assert_bool(matcher.is_match(0)).is_true()
|
||||
assert_bool(matcher.is_match(100010)).is_true()
|
||||
assert_bool(matcher.is_match(1.2)).is_true()
|
||||
assert_bool(matcher.is_match(RefCounted.new())).is_true()
|
||||
assert_bool(matcher.is_match(auto_free(Node.new()))).is_true()
|
||||
|
||||
|
||||
func test_any():
|
||||
assert_object(any()).is_instanceof(AnyArgumentMatcher)
|
||||
|
||||
|
||||
func test_to_string() -> void:
|
||||
assert_str(str(any())).is_equal("any()")
|
||||
Loading…
Add table
Add a link
Reference in a new issue