mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 21:40:54 +01:00
Add tests to confirm tostring
results
This commit is contained in:
parent
13574d44a6
commit
d411c8f908
1 changed files with 13 additions and 0 deletions
|
@ -49,3 +49,16 @@ assert(
|
|||
not pcall(Content.fromObject, Instance.new("Folder")),
|
||||
"Content.fromObject accepted an Instance as an argument"
|
||||
)
|
||||
|
||||
assert(
|
||||
tostring(Content.none) == "Content(None)",
|
||||
`expected tostring(Content.none) to be Content(None), it was actually {Content.none}`
|
||||
)
|
||||
assert(
|
||||
tostring(uri) == "Content(Uri=test uri)",
|
||||
`expected tostring(URI Content) to be Content(Uri=...), it was actually {uri}`
|
||||
)
|
||||
assert(
|
||||
tostring(object) == "Content(Object)",
|
||||
`expected tostring(Object Content) to be Content(Object), it was actually {object}`
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue