-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcore_test.aeon
More file actions
36 lines (28 loc) · 790 Bytes
/
Copy pathcore_test.aeon
File metadata and controls
36 lines (28 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Core AEONMI Quantum AST Integration Test
// Testing fundamental constructs that should work
// Test 1: Quantum State Literals (our implemented feature)
let state_zero = |0⟩;
let state_one = |1⟩;
let state_plus = |+⟩;
let state_minus = |-⟩;
// Test 2: Classical Variables
let number = 42;
let float_val = 3.14;
let boolean = true;
// Test 3: Basic Function Definition
function add_numbers(a, b) {
return a + b;
}
// Test 4: Basic Arithmetic (will trigger QuantumBinaryExpr AST)
let sum = number + 10;
let product = float_val * 2;
// Test 5: Function Call
let result = add_numbers(5, 7);
// Test 6: Basic Conditional
if number > 0 {
let positive = true;
}
// Test 7: Variable Assignment
number = 100;
// Test 8: Print Statement
print("AEONMI AST Integration Test");