Skip to content

Commit 9953817

Browse files
committed
emit clarifying comment in migrated files
1 parent c16ca08 commit 9953817

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/tools_tests/src/migrate/migrated/Migrated_StdlibMigration_Array.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// This file is autogenerated so it can be type checked.
2+
// It's the migrated version of src/migrate/StdlibMigration_Array.res.
13
let shift1 = [1, 2, 3]->Array.shift
24
let shift2 = Array.shift([1, 2, 3])
35

tests/tools_tests/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ done
4646
for file in src/migrate/StdlibMigration_*.res; do
4747
expected_file="src/expected/$(basename $file).expected"
4848
output="src/migrate/migrated/Migrated_$(basename $file)"
49-
cp -f "$expected_file" "$output"
49+
echo "// This file is autogenerated so it can be type checked.
50+
// It's the migrated version of $file." > "$output" && cat "$expected_file" >> "$output"
5051
done
5152

5253
warningYellow='\033[0;33m'

0 commit comments

Comments
 (0)