beehive-lab / TornadoVM

TornadoVM: A practical and efficient heterogeneous programming framework for managed languages
https://www.tornadovm.org
Apache License 2.0
1.16k stars 109 forks source link

[fix] actual and expected values swap #388

Closed jjfumero closed 2 months ago

jjfumero commented 2 months ago

Description

This PR swaps the actual and expected values from the Tensor unittests.

The signature from JUnit:

public static void assertEquals(float expected, float actual, float delta) 

But this test set the expected as actual value.

Problem description

n/a.

Backend/s tested

Mark the backends affected by this PR.

OS tested

Mark the OS where this PR is tested.

Did you check on FPGAs?

If it is applicable, check your changes on FPGAs.

How to test the new patch?

tornado-test -V --fast --threadInfo --debug uk.ac.manchester.tornado.unittests.tensors.TestTensorTypes