mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 21:41:53 -05:00
- fix a bug with unit declarations.
This commit is contained in:
1
test.lua
1
test.lua
@ -433,6 +433,7 @@ MyValue_data = "fakeunit"
|
||||
assert_equal(DogTag:Evaluate("[HP(MyValue)]", "Unit"), 'Bad unit: "fakeunit"')
|
||||
MyValue_data = 50
|
||||
assert_equal(DogTag:Evaluate("[HP(MyValue)]", "Unit"), 'Bad unit: "50"')
|
||||
assert_equal(DogTag:Evaluate("[HP(nil)]", "Unit"), nil)
|
||||
MyValue_data = nil
|
||||
assert_equal(DogTag:Evaluate("[HP(MyValue)]", "Unit"), nil)
|
||||
|
||||
|
Reference in New Issue
Block a user