Amber icon indicating copy to clipboard operation
Amber copied to clipboard

No tests for variables

Open b1ek opened this issue 1 year ago • 4 comments

I just noticed that none of the validity tests check if variables are behaving correctly.

some ideas for tests:

  1. redefinition of variables
    let var = "abc"
    let var = 123
    
  2. global ids, especially that when variable is accessed it uses the same id as it was when it was assigned
  3. a ton of other stuff, like accessing a variable from another scope and whatnot

b1ek avatar Aug 31 '24 10:08 b1ek

I think that we need a list of every kind of statement and expression and check od we have tests for it

KrosFire avatar Aug 31 '24 14:08 KrosFire

In validity there are a lot of tests but I don't think that there is one like this.

Mte90 avatar Sep 02 '24 08:09 Mte90

@KrosFire Do you mean some kind of features.txt so that we can keep it as a checklist for all of the features that Amber currently has?

Ph0enixKM avatar Sep 02 '24 09:09 Ph0enixKM

@Ph0enixKM I'm thinking of code coverage. Some anayltics tool to show us what we're missing in tests

KrosFire avatar Sep 05 '24 17:09 KrosFire

@Ph0enixKM we got that in the meantime?

Mte90 avatar Dec 10 '25 07:12 Mte90

We absolutely do

Ph0enixKM avatar Dec 10 '25 07:12 Ph0enixKM