Fix error message in tests (luau)
This commit is contained in:
parent
33278d4a64
commit
44a8d86d8a
|
@ -81,7 +81,7 @@ fn test_readonly_table() -> Result<()> {
|
||||||
assert!(t.is_readonly());
|
assert!(t.is_readonly());
|
||||||
|
|
||||||
match t.set("key", "value") {
|
match t.set("key", "value") {
|
||||||
Err(Error::RuntimeError(err)) if err.contains("Attempt to modify a readonly table") => {}
|
Err(Error::RuntimeError(err)) if err.contains("attempt to modify a readonly table") => {}
|
||||||
r => panic!(
|
r => panic!(
|
||||||
"expected RuntimeError(...) with a specific message, got {:?}",
|
"expected RuntimeError(...) with a specific message, got {:?}",
|
||||||
r
|
r
|
||||||
|
|
Loading…
Reference in New Issue