public void ValueListTest() { string expect = "#(1 2 3.1 \"4\")"; List <Value> x1 = ValueList.FromArguments(1, 2, 3.1, "4"); Value a1 = new Value(x1); Assert.AreEqual(expect, ValueString.ToString(x1)); Assert.AreEqual(expect, a1.ToString()); }
public void ValueListTest() { List <Value> x1 = ValueList.FromArguments(1, 2, 3); List <Value> x2 = ValueList.FromArguments(4, 5, 6); Value a1 = new Value(x1); Value a2 = new Value(x2); Value b1 = new Value(x1); Value b2 = new Value(x2); Assert.AreEqual(x1, (List <Value>)a1); Assert.AreEqual(x2, (List <Value>)a2); Assert.AreEqual(a1, b1); Assert.AreEqual(a2, b2); Assert.AreNotEqual(a1, a2); Assert.AreNotEqual(b1, b2); Assert.AreNotEqual(x1, (List <Value>)a2); Assert.AreNotEqual(x2, (List <Value>)a1); }