From ef2ab079df0a0971dee99547a31a021874e95077 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 22 Jul 2023 12:26:18 +0100 Subject: move tests to actual test programs yes, TAP --- test.sh | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 test.sh (limited to 'test.sh') diff --git a/test.sh b/test.sh deleted file mode 100644 index 1a4371e..0000000 --- a/test.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -PS4='[${#FUNCNAME[*]}] ${BASH_SOURCE[0]}:${LINENO} (${FUNCNAME[0]}) +' - -. bos-namespaces.sh -. bos-object-id.sh -. bos-mop.sh -. bos-dispatch.sh -. bos-mop-inheritance.sh -. bos-sugar.sh - -class A; do - - function thing() { - echo "<$self> A/thing ($*)" - } - -done - -class B; do - extends A - - function other() { - echo "<$self> B/other ($*)" - } - -done - -class C; do - extends B - - function thing() { - echo "<$self> C/thing ($*)" - - $self next/method "$@" - } - -done - -A new-into objA -B new-into objB -C new-into objC - -$objA thing 1 2 3 -$objB thing 4 5 6 -$objC thing 7 8 9 -$objB other a b c - -- cgit v1.2.3