From 9efabfe56ee8417b50ef1de7a339b1a0b62618e1 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 21 Jan 2022 01:47:21 +0900 Subject: [PATCH] internal/shader: add more tests Updates #1971 --- shader_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/shader_test.go b/shader_test.go index 5035ca9fc..41a889d0b 100644 --- a/shader_test.go +++ b/shader_test.go @@ -1570,6 +1570,7 @@ func TestShaderOperatorMultiply(t *testing.T) { {stmt: "a := vec2(1) * vec3(2); _ = a", err: true}, {stmt: "a := vec2(1) * vec4(2); _ = a", err: true}, {stmt: "a := vec2(1) * mat2(2); _ = a", err: false}, + {stmt: "a := vec2(1) + mat2(2); _ = a", err: true}, {stmt: "a := vec2(1) * mat3(2); _ = a", err: true}, {stmt: "a := vec2(1) * mat4(2); _ = a", err: true}, {stmt: "a := mat2(1) * 2; _ = a", err: false},