File: Test03

package info (click to toggle)
omake 0.10.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,076 kB
  • sloc: ml: 49,729; ansic: 5,163; makefile: 688; sh: 110
file content (13 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
A[] = $(set 1 2 3)
B[] =

A.foreach(v) =>
   B[] +=
      $v
   export

if $(not $(equal $(A), $(B)))
   eprintln($"Bug: the Array.foreach function does not preserve exports!")
   eprintln($"Expected: $A")
   eprintln($"Actual: $B")
   exit 1