<commit_before>namespace Boo.Adt.Tests

import NUnit.Framework
import Boo.Adt

data GExpression[T] = GConst(value as T) \
			| GAdd(left as GExpression[of T], right as GExpression[of T])

[TestFixture]
class GenericDataMacroTest:
	
	[Test]
	def TestClassHierarchy():
		type = GExpression[of int]
		assert type.IsAbstract
		
		for type in GConst[of int], GAdd[of int]:
			assert not type.IsAbstract
			assert not type.IsSealed
			
	[Test]
	def TestToString():
		Assert.AreEqual("GConst(42)", GConst[of int](42).ToString())
		Assert.AreEqual("GAdd(GConst(19), GConst(22))", GAdd[of int](GConst[of int](19), GConst[of int](22)).ToString())
<commit_msg>saner indentation<commit_after>namespace Boo.Adt.Tests

import NUnit.Framework
import Boo.Adt

data GExpression[T] = GConst(value as T) \
	| GAdd(left as GExpression[of T], right as GExpression[of T])

[TestFixture]
class GenericDataMacroTest:
	
	[Test]
	def TestClassHierarchy():
		type = GExpression[of int]
		assert type.IsAbstract
		
		for type in GConst[of int], GAdd[of int]:
			assert not type.IsAbstract
			assert not type.IsSealed
			
	[Test]
	def TestToString():
		Assert.AreEqual("GConst(42)", GConst[of int](42).ToString())
		Assert.AreEqual("GAdd(GConst(19), GConst(22))", GAdd[of int](GConst[of int](19), GConst[of int](22)).ToString())

{'fraction_non_alphanumeric': 0.13846153846153847, 'fraction_numerical': 0.018461538461538463, 'mean_word_length': 5.079439252336448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2223498', 'n_tokens_mistral': 510, 'n_tokens_neox': 461, 'n_words': 113}