extend("test")

describe("Bracketed array float up-casting", () => {

  it("should cast mixed int + float elements to a float_array", () => {
    arr = [12, 14, 15.2]
    expect_equal( type(arr), "float_array" )
    expect_equal( arr, [12.0, 14.0, 15.2] )
  })
  it("should also handle multiple integer elements plus a float", () => {
    arr2 = [3, 5, 2.75, 100]
    expect_equal( type(arr2), "float_array" )
    expect_equal( arr2, [3.0, 5.0, 2.75, 100.0] )
  })

  it("should treat negative int with float => all floats", () => {
    arr3 = [-1, 2.5, 10]
    expect_equal( type(arr3), "float_array" )
    expect_equal( arr3, [-1.0, 2.5, 10.0] )
  })

})
