Skip to content

Commit 8cf5b7e

Browse files
committed
#16 - add integration test samples for 'with' expressions
1 parent d179f50 commit 8cf5b7e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/HydraScript.IntegrationTests/HydraScript.IntegrationTests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@
122122
<None Update="Samples\vec2d.js">
123123
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
124124
</None>
125+
<None Update="Samples\with.js">
126+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
127+
</None>
125128
<None Update="Samples\xxx.js">
126129
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
127130
</None>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
let v = {
2+
x: 2;
3+
y: 1;
4+
}
5+
6+
let vToX = v with { y: 0; }
7+
8+
>>> vToX
9+
10+
>>> {x: 1;} with {}

0 commit comments

Comments
 (0)