From 7de05c746f59fe44d0e185efbaf2a213d487b93d Mon Sep 17 00:00:00 2001 From: vddCore Date: Fri, 5 Apr 2024 14:51:24 +0200 Subject: [PATCH] yeah how about you pay attention when doing ctrl+c/ctrl+v, v. --- VirtualMachine/Tests/Ceres.LanguageTests/tests/011_type.vil | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VirtualMachine/Tests/Ceres.LanguageTests/tests/011_type.vil b/VirtualMachine/Tests/Ceres.LanguageTests/tests/011_type.vil index 9b93211..ef04443 100644 --- a/VirtualMachine/Tests/Ceres.LanguageTests/tests/011_type.vil +++ b/VirtualMachine/Tests/Ceres.LanguageTests/tests/011_type.vil @@ -7,7 +7,7 @@ #[test] fn type_table() -> assert.equal(typeof({}), Table); #[test] fn type_array() -> assert.equal(typeof(array(10)), Array); #[test] fn type_chunk() -> assert.equal(typeof(testchunk), Function); -#[test] fn type_error() -> assert.equal(typeof(testchunk), Error); +#[test] fn type_error() -> assert.equal(typeof(error("uwu")), Error); #[test] fn type_type() -> assert.equal(typeof(typeof(0)), Type); #[test] fn type_nativefunction() -> assert.equal(typeof(__native_func), NativeFunction); #[test] fn type_nativeobject() -> assert.equal(typeof(__native_object), NativeObject); @@ -71,7 +71,7 @@ fn value_is_chunk() { #[test] fn value_is_error() { val testval = error("hello!"); - assert(testval is Function); + assert(testval is Error); } #[test]