@Test
    public void testFloatAndIntArithmetic() {
        var tester = new ScriptTester();
        var expression = tester.expressionFrom("input myFloat * 10 | attribute myFloat");

        SimpleTestAdapter adapter = new SimpleTestAdapter();
        var myFloat = new Field("myFloat", DataType.FLOAT);
        adapter.createField(myFloat);
        adapter.setValue("myFloat", new FloatFieldValue(1.3f));

        expression.resolve(adapter);

        ExecutionContext context = new ExecutionContext(adapter);
        expression.execute(context);
        assertEquals(13.0f, ((FloatFieldValue)adapter.values.get("myFloat")).getFloat(), 0.000001);
    }
@author Simon Thoresen Hult
@author bratseth
indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/ScriptTestCase.java