diff --git a/tests_data/basic/asm/arith.asm b/tests_data/basic/asm/arith.asm new file mode 100644 index 000000000..4f5daaee5 --- /dev/null +++ b/tests_data/basic/asm/arith.asm @@ -0,0 +1,13 @@ +segment .data + count dw 0 + value db 15 + +segment .text + inc [count] + dec [value] + + mov ebx, count + inc word [ebx] + + mov esi, value + dec byte [esi] \ No newline at end of file diff --git a/tests_data/basic/asm/basic.asm b/tests_data/basic/asm/basic.asm new file mode 100644 index 000000000..bf0616fae --- /dev/null +++ b/tests_data/basic/asm/basic.asm @@ -0,0 +1,16 @@ +section .text + global _start ;must be declared for linker (ld) + +_start: ;tells linker entry point + mov edx,len ;message length + mov ecx,msg ;message to write + mov ebx,1 ;file descriptor (stdout) + mov eax,4 ;system call number (sys_write) + int 0x80 ;call kernel + + mov eax,1 ;system call number (sys_exit) + int 0x80 ;call kernel + +section .data +msg db 'Hello, world!', 0xa ;string to be printed +len equ $ - msg ;length of the string \ No newline at end of file diff --git a/tests_data/basic/asm/complex-operations.asm b/tests_data/basic/asm/complex-operations.asm new file mode 100644 index 000000000..916b53d73 --- /dev/null +++ b/tests_data/basic/asm/complex-operations.asm @@ -0,0 +1,24 @@ +section .data + num1 dw 1234h + num2 dw 5678h + result dw 0 + +section .text + global _start + +_start: + ; Load numbers into registers + mov ax, [num1] + mov bx, [num2] + + ; Perform addition + add ax, bx + mov [result], ax + + ; Perform subtraction + sub ax, bx + mov [result], ax + + ; Exit + mov eax, 1 + int 0x80 \ No newline at end of file diff --git a/tests_data/basic/asm/reg.asm b/tests_data/basic/asm/reg.asm new file mode 100644 index 000000000..7ac0b8005 --- /dev/null +++ b/tests_data/basic/asm/reg.asm @@ -0,0 +1,23 @@ +section .text + global _start ;must be declared for linker (gcc) + +_start: ;tell linker entry point + mov edx,len ;message length + mov ecx,msg ;message to write + mov ebx,1 ;file descriptor (stdout) + mov eax,4 ;system call number (sys_write) + int 0x80 ;call kernel + + mov edx,9 ;message length + mov ecx,s2 ;message to write + mov ebx,1 ;file descriptor (stdout) + mov eax,4 ;system call number (sys_write) + int 0x80 ;call kernel + + mov eax,1 ;system call number (sys_exit) + int 0x80 ;call kernel + +section .data +msg db 'Displaying 9 stars',0xa ;a message +len equ $ - msg ;length of message +s2 times 9 db '*' \ No newline at end of file diff --git a/tests_data/basic/empty/empty-file b/tests_data/basic/empty/empty-file new file mode 100644 index 000000000..11b7ccc5c --- /dev/null +++ b/tests_data/basic/empty/empty-file @@ -0,0 +1 @@ +# This file is intentionally left empty for testing purposes. \ No newline at end of file diff --git a/tests_data/basic/handlebars/nested-conditions.handlebars b/tests_data/basic/handlebars/nested-conditions.handlebars new file mode 100644 index 000000000..f626e74dd --- /dev/null +++ b/tests_data/basic/handlebars/nested-conditions.handlebars @@ -0,0 +1,18 @@ +{{#if condition}} + {{#each items}} +
{{this}}
+ {{else}} +

No items found.

+ {{/each}} +{{else}} +

Condition not met.

+{{/if}} + +{{#if user.isAdmin}} +

Welcome, Admin!

+ {{#each user.permissions}} +

Permission: {{this}}

+ {{/each}} +{{else}} +

Access Denied

+{{/if}} \ No newline at end of file diff --git a/tests_data/basic/html/complex-layout.html b/tests_data/basic/html/complex-layout.html new file mode 100644 index 000000000..72f56ea19 --- /dev/null +++ b/tests_data/basic/html/complex-layout.html @@ -0,0 +1,23 @@ + + + + + + Edge Case HTML + + +
+

Welcome to Edge Case Testing

+
+
+
+
+

This is a test paragraph with a link.

+
+
+
+ + + \ No newline at end of file diff --git a/tests_data/basic/json/test2.json b/tests_data/basic/json/test2.json new file mode 100644 index 000000000..3f130e150 --- /dev/null +++ b/tests_data/basic/json/test2.json @@ -0,0 +1,18 @@ +{ + "user": { + "id": 123, + "name": "John Doe", + "roles": ["admin", "editor"], + "preferences": { + "theme": "dark", + "notifications": { + "email": true, + "sms": false + } + } + }, + "metadata": { + "createdAt": "2026-04-19T12:00:00Z", + "updatedAt": null + } +} \ No newline at end of file diff --git a/tests_data/basic/markdown/test2.md b/tests_data/basic/markdown/test2.md new file mode 100644 index 000000000..0cfcd7f94 --- /dev/null +++ b/tests_data/basic/markdown/test2.md @@ -0,0 +1,17 @@ +# Edge Case Markdown + +## Subheading + +This is a paragraph with **bold text**, *italic text*, and `inline code`. + +- List item 1 +- List item 2 + - Nested item 1 + - Nested item 2 + +> This is a blockquote. + +```python +# This is a code block +print("Hello, Markdown!") +``` \ No newline at end of file diff --git a/tests_data/basic/python/func.py b/tests_data/basic/python/func.py new file mode 100644 index 000000000..92e1db6e0 --- /dev/null +++ b/tests_data/basic/python/func.py @@ -0,0 +1,14 @@ +def edge_function(param): + if param is None: + return "No value provided" + elif isinstance(param, int) and param < 0: + return "Negative value" + elif isinstance(param, str) and not param.strip(): + return "Empty string" + return f"Valid input: {param}" + +# Test cases +print(edge_function(None)) +print(edge_function(-5)) +print(edge_function(" ")) +print(edge_function("Hello")) \ No newline at end of file diff --git a/tests_data/basic/svg/test2.svg b/tests_data/basic/svg/test2.svg new file mode 100644 index 000000000..f9650ae43 --- /dev/null +++ b/tests_data/basic/svg/test2.svg @@ -0,0 +1,5 @@ + + + + Complex SVG + \ No newline at end of file diff --git a/tests_data/basic/yaml/test1.yml b/tests_data/basic/yaml/test1.yml new file mode 100644 index 000000000..44ae5ddb8 --- /dev/null +++ b/tests_data/basic/yaml/test1.yml @@ -0,0 +1,14 @@ +user: + id: 123 + name: John Doe + roles: + - admin + - editor + preferences: + theme: dark + notifications: + email: true + sms: false +metadata: + createdAt: 2026-04-19T12:00:00Z + updatedAt: null \ No newline at end of file