# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. cases: - note: bits.and.error.wrongtype1 data: {} modules: - | package test x = bits.and(1, "str") query: data.test error: "`bits.and` expects numeric argument. Got `\"str\"` instead" - note: bits.and.error.wrongtype2 data: {} modules: - | package test x = bits.and("str", 1) query: data.test error: "`bits.and` expects numeric argument. Got `\"str\"` instead" - note: bits.and.error.morearg data: {} modules: - | package test x = bits.and(1, 1, 1) query: data.test error: "`bits.and` expects 2 arguments" - note: bits.and.error.lessarg data: {} modules: - | package test x = bits.and(1) query: data.test error: "`bits.and` expects 2 arguments" - note: bits.and data: {} modules: - | package test x1 = bits.and(1, 0) x2 = bits.and(1, 1) x3 = bits.and(0, 0) x4 = bits.and(0, 1) query: data.test want_result: x1 : 0 x2 : 1 x3 : 0 x4 : 0