Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests_data/basic/asm/arith.asm
Original file line number Diff line number Diff line change
@@ -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]
16 changes: 16 additions & 0 deletions tests_data/basic/asm/basic.asm
Original file line number Diff line number Diff line change
@@ -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
24 changes: 24 additions & 0 deletions tests_data/basic/asm/complex-operations.asm
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions tests_data/basic/asm/reg.asm
Original file line number Diff line number Diff line change
@@ -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 '*'
1 change: 1 addition & 0 deletions tests_data/basic/empty/empty-file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file is intentionally left empty for testing purposes.
18 changes: 18 additions & 0 deletions tests_data/basic/handlebars/nested-conditions.handlebars
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{#if condition}}
{{#each items}}
<div>{{this}}</div>
{{else}}
<p>No items found.</p>
{{/each}}
{{else}}
<p>Condition not met.</p>
{{/if}}

{{#if user.isAdmin}}
<h1>Welcome, Admin!</h1>
{{#each user.permissions}}
<p>Permission: {{this}}</p>
{{/each}}
{{else}}
<p>Access Denied</p>
{{/if}}
23 changes: 23 additions & 0 deletions tests_data/basic/html/complex-layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Edge Case HTML</title>
</head>
<body>
<header>
<h1>Welcome to Edge Case Testing</h1>
</header>
<main>
<section>
<article>
<p>This is a <strong>test</strong> paragraph with <a href="#">a link</a>.</p>
</article>
</section>
</main>
<footer>
<p>&copy; 2026 Edge Case Inc.</p>
</footer>
</body>
</html>
18 changes: 18 additions & 0 deletions tests_data/basic/json/test2.json
Original file line number Diff line number Diff line change
@@ -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
}
}
17 changes: 17 additions & 0 deletions tests_data/basic/markdown/test2.md
Original file line number Diff line number Diff line change
@@ -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!")
```
14 changes: 14 additions & 0 deletions tests_data/basic/python/func.py
Original file line number Diff line number Diff line change
@@ -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"))
5 changes: 5 additions & 0 deletions tests_data/basic/svg/test2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions tests_data/basic/yaml/test1.yml
Original file line number Diff line number Diff line change
@@ -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