From 6b69bcbb74274226aad013a7c9e759591e931500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Wallis=20Juc=C3=A1?= Date: Sun, 29 Jul 2018 05:28:20 -0300 Subject: [PATCH] WIP: Unit tests --- test/number-only.test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 test/number-only.test.sh diff --git a/test/number-only.test.sh b/test/number-only.test.sh new file mode 100755 index 0000000..db0b6b4 --- /dev/null +++ b/test/number-only.test.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# Copyright (c) 2018 Joel Wallis Jucá +# ISC licensed + +@test "is a function" { + type numeric-only | grep function + [ "$status" -eq 0 ] + + numeric-only + [ "$status" -eq 0 ] +}