Skip to content

Commit 1289975

Browse files
committed
Add link set tests against actual model.
1 parent 3b60345 commit 1289975

2 files changed

Lines changed: 1872 additions & 0 deletions

File tree

tests/dbsetup/link_set.gel

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
module default {
2+
type Named {
3+
required property name: std::str;
4+
};
5+
6+
type House extending Named {
7+
# Computed multi
8+
multi members := .<house[is Person];
9+
};
10+
11+
type Person extending Named {
12+
# Single with prop
13+
house: House {
14+
rank: std::str;
15+
};
16+
# Multi with prop
17+
multi friends: Person {
18+
opinion: std::str;
19+
};
20+
# Single
21+
pet: Pet {
22+
constraint exclusive;
23+
};
24+
# Multi
25+
multi classes: Class;
26+
};
27+
28+
type Pet extending Named {
29+
# Computed single
30+
owner := .<pet[is Person];
31+
};
32+
33+
type Class extending Named;
34+
}

0 commit comments

Comments
 (0)