/*
 * Zorbage: an algebraic data hierarchy for use in numeric processing.
 *
 * Copyright (C) 2016-2020 Barry DeZonia
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * 
 * 1. Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package nom.bdezonia.zorbage.type.tuple;

import static org.junit.Assert.assertEquals;

import java.math.BigInteger;

import org.junit.Test;

import nom.bdezonia.zorbage.algebra.G;
import nom.bdezonia.zorbage.tuple.Tuple4;
import nom.bdezonia.zorbage.type.bool.BooleanAlgebra;
import nom.bdezonia.zorbage.type.bool.BooleanMember;
import nom.bdezonia.zorbage.type.integer.int128.UnsignedInt128Algebra;
import nom.bdezonia.zorbage.type.integer.int128.UnsignedInt128Member;
import nom.bdezonia.zorbage.type.integer.int4.SignedInt4Algebra;
import nom.bdezonia.zorbage.type.integer.int4.SignedInt4Member;
import nom.bdezonia.zorbage.type.real.float64.Float64Algebra;
import nom.bdezonia.zorbage.type.real.float64.Float64Member;

/**
 * 
 * @author Barry DeZonia
 *
 */
public class TestTuple {

	@Test
	public void test1() {
		
		Tuple4<Float64Member,SignedInt4Member,BooleanMember,UnsignedInt128Member> tuple =
				new Tuple4Algebra<Float64Algebra,Float64Member,SignedInt4Algebra,SignedInt4Member,BooleanAlgebra,BooleanMember,UnsignedInt128Algebra,UnsignedInt128Member>(G.DBL,G.INT4,G.BOOL,G.UINT128).construct("14.2:-2:true");
		
		assertEquals(14.2, tuple.a().v(), 0);
		assertEquals(-2, tuple.b().v());
		assertEquals(true, tuple.c().v());
		assertEquals(BigInteger.ZERO, tuple.d().v());
	}
}

@@ -2253,98 +2253,8 @@
 %09%0A%09%09
-Tuple4%3CFloat64Member,SignedInt4Member,BooleanMember,UnsignedInt128Member%3E tuple =%0A%09%09%09%09new 
 Tupl
@@ -2399,16 +2399,45 @@
 8Member%3E
+%0A%09%09%09alg = new Tuple4Algebra%3C%3E
 (G.DBL,G
@@ -2459,16 +2459,108 @@
 UINT128)
+;%0A%09%09%0A%09%09Tuple4%3CFloat64Member,SignedInt4Member,BooleanMember,UnsignedInt128Member%3E tuple = alg
 .constru

Clarify some test code