From aa64234707a7d5f61a143970ffc1f3631a12a1fd Mon Sep 17 00:00:00 2001 From: Spiro Trikaliotis Date: Mon, 20 Jun 2022 23:03:12 +0200 Subject: [PATCH] Testcases for case --- test/asm/listing/050-case-off-2.s | 10 ++++++++++ test/asm/listing/050-case-off-3.s | 10 ++++++++++ test/asm/listing/050-case-off-4.s | 10 ++++++++++ test/asm/listing/050-case-on-1.s | 10 ++++++++++ test/asm/listing/050-case-on-2.s | 10 ++++++++++ test/asm/listing/050-case-on-3.s | 10 ++++++++++ test/asm/listing/050-case-on-4.s | 10 ++++++++++ test/asm/listing/050-case-on-5.s | 10 ++++++++++ test/asm/listing/control/050-case-on-1.err | 0 test/asm/listing/control/050-case-on-1.no-ld65 | 0 test/asm/listing/control/050-case-on-2.err | 0 test/asm/listing/control/050-case-on-2.no-ld65 | 0 test/asm/listing/control/050-case-on-3.err | 0 test/asm/listing/control/050-case-on-3.no-ld65 | 0 test/asm/listing/control/050-case-on-4.err | 0 test/asm/listing/control/050-case-on-4.no-ld65 | 0 test/asm/listing/control/050-case-on-5.err | 0 test/asm/listing/control/050-case-on-5.no-ld65 | 0 test/asm/listing/ref/050-case-off-2.list-ref | 15 +++++++++++++++ test/asm/listing/ref/050-case-off-3.list-ref | 15 +++++++++++++++ test/asm/listing/ref/050-case-off-4.list-ref | 15 +++++++++++++++ test/asm/listing/ref/050-case-on-1.err-ref | 1 + test/asm/listing/ref/050-case-on-2.err-ref | 1 + test/asm/listing/ref/050-case-on-3.err-ref | 1 + test/asm/listing/ref/050-case-on-4.err-ref | 1 + test/asm/listing/ref/050-case-on-5.err-ref | 1 + 26 files changed, 130 insertions(+) create mode 100644 test/asm/listing/050-case-off-2.s create mode 100644 test/asm/listing/050-case-off-3.s create mode 100644 test/asm/listing/050-case-off-4.s create mode 100644 test/asm/listing/050-case-on-1.s create mode 100644 test/asm/listing/050-case-on-2.s create mode 100644 test/asm/listing/050-case-on-3.s create mode 100644 test/asm/listing/050-case-on-4.s create mode 100644 test/asm/listing/050-case-on-5.s create mode 100644 test/asm/listing/control/050-case-on-1.err create mode 100644 test/asm/listing/control/050-case-on-1.no-ld65 create mode 100644 test/asm/listing/control/050-case-on-2.err create mode 100644 test/asm/listing/control/050-case-on-2.no-ld65 create mode 100644 test/asm/listing/control/050-case-on-3.err create mode 100644 test/asm/listing/control/050-case-on-3.no-ld65 create mode 100644 test/asm/listing/control/050-case-on-4.err create mode 100644 test/asm/listing/control/050-case-on-4.no-ld65 create mode 100644 test/asm/listing/control/050-case-on-5.err create mode 100644 test/asm/listing/control/050-case-on-5.no-ld65 create mode 100644 test/asm/listing/ref/050-case-off-2.list-ref create mode 100644 test/asm/listing/ref/050-case-off-3.list-ref create mode 100644 test/asm/listing/ref/050-case-off-4.list-ref create mode 100644 test/asm/listing/ref/050-case-on-1.err-ref create mode 100644 test/asm/listing/ref/050-case-on-2.err-ref create mode 100644 test/asm/listing/ref/050-case-on-3.err-ref create mode 100644 test/asm/listing/ref/050-case-on-4.err-ref create mode 100644 test/asm/listing/ref/050-case-on-5.err-ref diff --git a/test/asm/listing/050-case-off-2.s b/test/asm/listing/050-case-off-2.s new file mode 100644 index 000000000..15b34415a --- /dev/null +++ b/test/asm/listing/050-case-off-2.s @@ -0,0 +1,10 @@ +; 2022-06-20 Spiro Trikaliotis + + .case - + +CamelCase: + lda #0 + +Test: + beq CamelCase + bne camelcase diff --git a/test/asm/listing/050-case-off-3.s b/test/asm/listing/050-case-off-3.s new file mode 100644 index 000000000..1b06fbc30 --- /dev/null +++ b/test/asm/listing/050-case-off-3.s @@ -0,0 +1,10 @@ +; 2022-06-20 Spiro Trikaliotis + + .case off + +CamelCase: + lda #0 + +Test: + beq CamelCase + bne camelcase diff --git a/test/asm/listing/050-case-off-4.s b/test/asm/listing/050-case-off-4.s new file mode 100644 index 000000000..e751f35fd --- /dev/null +++ b/test/asm/listing/050-case-off-4.s @@ -0,0 +1,10 @@ +; 2022-06-20 Spiro Trikaliotis + + .CASE OFF + +CamelCase: + lda #0 + +Test: + beq CamelCase + bne camelcase diff --git a/test/asm/listing/050-case-on-1.s b/test/asm/listing/050-case-on-1.s new file mode 100644 index 000000000..16b5f32a9 --- /dev/null +++ b/test/asm/listing/050-case-on-1.s @@ -0,0 +1,10 @@ +; 2022-06-20 Spiro Trikaliotis + + + +CamelCase: + lda #0 + +Test: + beq CamelCase + bne camelcase diff --git a/test/asm/listing/050-case-on-2.s b/test/asm/listing/050-case-on-2.s new file mode 100644 index 000000000..0b681f8fe --- /dev/null +++ b/test/asm/listing/050-case-on-2.s @@ -0,0 +1,10 @@ +; 2022-06-20 Spiro Trikaliotis + + .case + + +CamelCase: + lda #0 + +Test: + beq CamelCase + bne camelcase diff --git a/test/asm/listing/050-case-on-3.s b/test/asm/listing/050-case-on-3.s new file mode 100644 index 000000000..bd0b77a6b --- /dev/null +++ b/test/asm/listing/050-case-on-3.s @@ -0,0 +1,10 @@ +; 2022-06-20 Spiro Trikaliotis + + .case on + +CamelCase: + lda #0 + +Test: + beq CamelCase + bne camelcase diff --git a/test/asm/listing/050-case-on-4.s b/test/asm/listing/050-case-on-4.s new file mode 100644 index 000000000..f6d6babbb --- /dev/null +++ b/test/asm/listing/050-case-on-4.s @@ -0,0 +1,10 @@ +; 2022-06-20 Spiro Trikaliotis + + .CASE ON + +CamelCase: + lda #0 + +Test: + beq CamelCase + bne camelcase diff --git a/test/asm/listing/050-case-on-5.s b/test/asm/listing/050-case-on-5.s new file mode 100644 index 000000000..393f853d1 --- /dev/null +++ b/test/asm/listing/050-case-on-5.s @@ -0,0 +1,10 @@ +; 2022-06-20 Spiro Trikaliotis + + .case + +CamelCase: + lda #0 + +Test: + beq CamelCase + bne camelcase diff --git a/test/asm/listing/control/050-case-on-1.err b/test/asm/listing/control/050-case-on-1.err new file mode 100644 index 000000000..e69de29bb diff --git a/test/asm/listing/control/050-case-on-1.no-ld65 b/test/asm/listing/control/050-case-on-1.no-ld65 new file mode 100644 index 000000000..e69de29bb diff --git a/test/asm/listing/control/050-case-on-2.err b/test/asm/listing/control/050-case-on-2.err new file mode 100644 index 000000000..e69de29bb diff --git a/test/asm/listing/control/050-case-on-2.no-ld65 b/test/asm/listing/control/050-case-on-2.no-ld65 new file mode 100644 index 000000000..e69de29bb diff --git a/test/asm/listing/control/050-case-on-3.err b/test/asm/listing/control/050-case-on-3.err new file mode 100644 index 000000000..e69de29bb diff --git a/test/asm/listing/control/050-case-on-3.no-ld65 b/test/asm/listing/control/050-case-on-3.no-ld65 new file mode 100644 index 000000000..e69de29bb diff --git a/test/asm/listing/control/050-case-on-4.err b/test/asm/listing/control/050-case-on-4.err new file mode 100644 index 000000000..e69de29bb diff --git a/test/asm/listing/control/050-case-on-4.no-ld65 b/test/asm/listing/control/050-case-on-4.no-ld65 new file mode 100644 index 000000000..e69de29bb diff --git a/test/asm/listing/control/050-case-on-5.err b/test/asm/listing/control/050-case-on-5.err new file mode 100644 index 000000000..e69de29bb diff --git a/test/asm/listing/control/050-case-on-5.no-ld65 b/test/asm/listing/control/050-case-on-5.no-ld65 new file mode 100644 index 000000000..e69de29bb diff --git a/test/asm/listing/ref/050-case-off-2.list-ref b/test/asm/listing/ref/050-case-off-2.list-ref new file mode 100644 index 000000000..5a88a19ba --- /dev/null +++ b/test/asm/listing/ref/050-case-off-2.list-ref @@ -0,0 +1,15 @@ +ca65 Vx.xx - Git XXXXXXXXX +Main file : 050-case-off-2.s +Current file: 050-case-off-2.s + +000000r 1 ; 2022-06-20 Spiro Trikaliotis +000000r 1 +000000r 1 .case - +000000r 1 +000000r 1 CamelCase: +000000r 1 A9 00 lda #0 +000002r 1 +000002r 1 Test: +000002r 1 F0 FC beq CamelCase +000004r 1 D0 FA bne camelcase +000004r 1 diff --git a/test/asm/listing/ref/050-case-off-3.list-ref b/test/asm/listing/ref/050-case-off-3.list-ref new file mode 100644 index 000000000..5f6ea21a0 --- /dev/null +++ b/test/asm/listing/ref/050-case-off-3.list-ref @@ -0,0 +1,15 @@ +ca65 Vx.xx - Git XXXXXXXXX +Main file : 050-case-off-3.s +Current file: 050-case-off-3.s + +000000r 1 ; 2022-06-20 Spiro Trikaliotis +000000r 1 +000000r 1 .case off +000000r 1 +000000r 1 CamelCase: +000000r 1 A9 00 lda #0 +000002r 1 +000002r 1 Test: +000002r 1 F0 FC beq CamelCase +000004r 1 D0 FA bne camelcase +000004r 1 diff --git a/test/asm/listing/ref/050-case-off-4.list-ref b/test/asm/listing/ref/050-case-off-4.list-ref new file mode 100644 index 000000000..61f34a7f8 --- /dev/null +++ b/test/asm/listing/ref/050-case-off-4.list-ref @@ -0,0 +1,15 @@ +ca65 Vx.xx - Git XXXXXXXXX +Main file : 050-case-off-4.s +Current file: 050-case-off-4.s + +000000r 1 ; 2022-06-20 Spiro Trikaliotis +000000r 1 +000000r 1 .CASE OFF +000000r 1 +000000r 1 CamelCase: +000000r 1 A9 00 lda #0 +000002r 1 +000002r 1 Test: +000002r 1 F0 FC beq CamelCase +000004r 1 D0 FA bne camelcase +000004r 1 diff --git a/test/asm/listing/ref/050-case-on-1.err-ref b/test/asm/listing/ref/050-case-on-1.err-ref new file mode 100644 index 000000000..12a14ca31 --- /dev/null +++ b/test/asm/listing/ref/050-case-on-1.err-ref @@ -0,0 +1 @@ +050-case-on-1.s:10: Error: Symbol 'camelcase' is undefined diff --git a/test/asm/listing/ref/050-case-on-2.err-ref b/test/asm/listing/ref/050-case-on-2.err-ref new file mode 100644 index 000000000..9331ee992 --- /dev/null +++ b/test/asm/listing/ref/050-case-on-2.err-ref @@ -0,0 +1 @@ +050-case-on-2.s:10: Error: Symbol 'camelcase' is undefined diff --git a/test/asm/listing/ref/050-case-on-3.err-ref b/test/asm/listing/ref/050-case-on-3.err-ref new file mode 100644 index 000000000..5d0a08d1a --- /dev/null +++ b/test/asm/listing/ref/050-case-on-3.err-ref @@ -0,0 +1 @@ +050-case-on-3.s:10: Error: Symbol 'camelcase' is undefined diff --git a/test/asm/listing/ref/050-case-on-4.err-ref b/test/asm/listing/ref/050-case-on-4.err-ref new file mode 100644 index 000000000..4fb8db100 --- /dev/null +++ b/test/asm/listing/ref/050-case-on-4.err-ref @@ -0,0 +1 @@ +050-case-on-4.s:10: Error: Symbol 'camelcase' is undefined diff --git a/test/asm/listing/ref/050-case-on-5.err-ref b/test/asm/listing/ref/050-case-on-5.err-ref new file mode 100644 index 000000000..b6691f5d9 --- /dev/null +++ b/test/asm/listing/ref/050-case-on-5.err-ref @@ -0,0 +1 @@ +050-case-on-5.s:10: Error: Symbol 'camelcase' is undefined