interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / omega / allen / tests / intent.om

41 lines · 903 bytes Raw Blame History
1text Askcode "Please make me a calculator"
2text Askpoem "Write a poem about python"
3text Askmore "Now add a square root key"
4text Expected "JOB 9 code the person asked Allen for code.\tPlease make me a calculator"
5text Nscript "script a poem"
6fn main to int
7put Inlen 0 len Askcode
8for i ulong len Askcode
9put In i get Askcode i
10end
11check eq classify 2 501
12b = jobbuild 2 9
13same = eq get Outlen 0 len Expected
14for i ulong len Expected
15if ne get Outb i get Expected i
16same = false
17end
18end
19check b 502
20check same 503
21put Inlen 0 len Askpoem
22for i ulong len Askpoem
23put In i get Askpoem i
24end
25check eq classify 1 504
26check eq jobwant 1 505
27put Inlen 0 len Askmore
28for i ulong len Askmore
29put In i get Askmore i
30end
31check eq classify 1 506
32put R 6 1
33check eq classify 3 507
34put R 6 0
35put Inlen 0 len Nscript
36for i ulong len Nscript
37put In i get Nscript i
38end
39check eq classify 1 508
40ret int get Fails 0
41end