From 967963c9d7522b664af2ba60647002c39ca97090 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Thu, 3 Aug 2023 15:22:06 +1000 Subject: [PATCH] Fixed a spelling mistake --- repl/lib_math.c | 4 ++-- source/toy_common.h | 2 +- test/scripts/lib/math.toy | 24 ++++++++++++------------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/repl/lib_math.c b/repl/lib_math.c index f68ce30..f0e13f7 100644 --- a/repl/lib_math.c +++ b/repl/lib_math.c @@ -1002,8 +1002,8 @@ int Toy_hookMath(Toy_Interpreter* interpreter, Toy_Literal identifier, Toy_Liter // Comparison {"checkIsNaN", nativeCheckIsNaN}, - {"chechIsFinite", nativeCheckIsFinite}, - {"chechIsInfinite", nativeCheckIsInfinite}, + {"checkIsFinite", nativeCheckIsFinite}, + {"checkIsInfinite", nativeCheckIsInfinite}, {"epsilionCompare", nativeEpsilionCompare}, {NULL, NULL} diff --git a/source/toy_common.h b/source/toy_common.h index 7d8b621..2f9b239 100644 --- a/source/toy_common.h +++ b/source/toy_common.h @@ -64,7 +64,7 @@ The current patch version of Toy. This value is embedded into the bytecode. This value MUST fit into an unsigned char. !*/ -#define TOY_VERSION_PATCH 1 +#define TOY_VERSION_PATCH 2 /*! ### TOY_VERSION_BUILD diff --git a/test/scripts/lib/math.toy b/test/scripts/lib/math.toy index e8603ac..ede8884 100644 --- a/test/scripts/lib/math.toy +++ b/test/scripts/lib/math.toy @@ -144,8 +144,8 @@ import math; // test atanh { - assert chechIsInfinite(atanh(1)) == true, "atanh(1) failed"; - assert chechIsInfinite(atanh(-1)) == true, "atanh(-1) failed"; + assert checkIsInfinite(atanh(1)) == true, "atanh(1) failed"; + assert checkIsInfinite(atanh(-1)) == true, "atanh(-1) failed"; assert epsilionCompare(atanh(0), 0), "atanh(0) failed"; } @@ -159,21 +159,21 @@ import math; } -// test chechIsFinite +// test checkIsFinite { - assert chechIsFinite(NAN) == false, "chechIsFinite(NAN) failed"; - assert chechIsFinite(INFINITY) == false, "chechIsFinite(INFINITY) failed"; - assert chechIsFinite(0.0) == true, "chechIsFinite(0.0) failed"; - assert chechIsFinite(1) == true, "chechIsFinite(1) failed"; + assert checkIsFinite(NAN) == false, "checkIsFinite(NAN) failed"; + assert checkIsFinite(INFINITY) == false, "checkIsFinite(INFINITY) failed"; + assert checkIsFinite(0.0) == true, "checkIsFinite(0.0) failed"; + assert checkIsFinite(1) == true, "checkIsFinite(1) failed"; } -// test chechIsInfinite +// test checkIsInfinite { - assert chechIsInfinite(NAN) == false, "chechIsInfinite(NAN) failed"; - assert chechIsInfinite(INFINITY) == true, "chechIsInfinite(INFINITY) failed"; - assert chechIsInfinite(0.0) == false, "chechIsInfinite(0.0) failed"; - assert chechIsInfinite(1) == false, "chechIsInfinite(1) failed"; + assert checkIsInfinite(NAN) == false, "checkIsInfinite(NAN) failed"; + assert checkIsInfinite(INFINITY) == true, "checkIsInfinite(INFINITY) failed"; + assert checkIsInfinite(0.0) == false, "checkIsInfinite(0.0) failed"; + assert checkIsInfinite(1) == false, "checkIsInfinite(1) failed"; } // test epsilionCompare