<commit_before>﻿using NUnit.Framework;

namespace Rant.Tests
{
	[TestFixture]
	public class Subroutines
	{
		[Test]
		public void NoParamsOutput()
		{
			Assert.AreEqual("1 2 3 4 5 6 7 8 9 10", 
				new RantEngine().Do(@"[$[test]:[r:10][s:\s]{[rn]}][$test]"));
		}

		[Test]
		[ExpectedException(typeof(RantRuntimeException))]
		public void OutOfScope()
		{
			new RantEngine().Do(@"{[$[test]:\16,c]}[$test]");
		}
<commit_msg>Fix return value in Subroutines.NoParamsOutput test<commit_after>﻿using NUnit.Framework;

namespace Rant.Tests
{
	[TestFixture]
	public class Subroutines
	{
		[Test]
		public void NoParamsOutput()
		{
			Assert.AreEqual("1 2 3 4 5 6 7 8 9 10", 
				new RantEngine().Do(@"[$[test]:[r:10][s:\s]{[rn]}][$test]").MainValue);
		}

		[Test]
		[ExpectedException(typeof(RantRuntimeException))]
		public void OutOfScope()
		{
			new RantEngine().Do(@"{[$[test]:\16,c]}[$test]");
		}

{'fraction_non_alphanumeric': 0.19290465631929046, 'fraction_numerical': 0.03325942350332594, 'mean_word_length': 4.5060975609756095, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6782005', 'n_tokens_mistral': 414, 'n_tokens_neox': 348, 'n_words': 67}