From 9f66199777641ced6778d944e91a2e6834b6476b Mon Sep 17 00:00:00 2001 From: melsonic Date: Wed, 16 Apr 2025 01:03:52 +0530 Subject: [PATCH] add test .exp file --- .../TestCompile/invalid_gradient_color_stop.exp.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 testdata/d2compiler/TestCompile/invalid_gradient_color_stop.exp.json diff --git a/testdata/d2compiler/TestCompile/invalid_gradient_color_stop.exp.json b/testdata/d2compiler/TestCompile/invalid_gradient_color_stop.exp.json new file mode 100644 index 000000000..49f1fffea --- /dev/null +++ b/testdata/d2compiler/TestCompile/invalid_gradient_color_stop.exp.json @@ -0,0 +1,11 @@ +{ + "graph": null, + "err": { + "errs": [ + { + "range": "d2/testdata/d2compiler/TestCompile/invalid_gradient_color_stop.d2,2:18:25-2:47:54", + "errmsg": "d2/testdata/d2compiler/TestCompile/invalid_gradient_color_stop.d2:3:19: expected \"fill\" to be a valid named color (\"orange\"), a hex code (\"#f0ff3a\"), or a gradient (\"linear-gradient(red, blue)\")" + } + ] + } +}