This is a test paragraph with a link.
+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}} +
No items found.
+ {{/each}} +{{else}} +Condition not met.
+{{/if}} + +{{#if user.isAdmin}} +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 @@ + + + + + +This is a test paragraph with a link.
+