<commit_before>﻿using Bib3.Test;

namespace Sanderling.Parse.Test
{
	static public class Inventory
	{
		static public TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>[]
			CapacityGaugeTestCase =>
			new TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>[]{

				new TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>()
				{
					In = "(0,1) 2.153,8 m³",
					Out = new InventoryCapacityGauge()
					{
						Used = 2153800L,
						Selected = 100,
					},
				},

				new TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>()
				{
					In  = "0,0/450,0 m³",
					Out = new InventoryCapacityGauge()
					{
						Used = 0,
						Max = 450L * 1000,
					},
				},

				new TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>()
				{
					In = "0.0/8'500.0 m³",
					Out = new   InventoryCapacityGauge()
					{
						Used = 0,
						Max = 8500L * 1000,
					},
				},
			};
<commit_msg>Translate the change contributed by NisuSan on another branch to the master branch. Nisu had observed a formatting in the inventories capacity gauge which is not supported yet in the parsing code.<commit_after>﻿using Bib3.Test;

namespace Sanderling.Parse.Test
{
	static public class Inventory
	{
		static public TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>[]
			CapacityGaugeTestCase =>
			new TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>[]{

				new TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>()
				{
					In = "(0,1) 2.153,8 m³",
					Out = new InventoryCapacityGauge()
					{
						Used = 2153800L,
						Selected = 100,
					},
				},

				new TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>()
				{
					In  = "0,0/450,0 m³",
					Out = new InventoryCapacityGauge()
					{
						Used = 0,
						Max = 450L * 1000,
					},
				},

				new TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>()
				{
					In = "0.0/8'500.0 m³",
					Out = new   InventoryCapacityGauge()
					{
						Used = 0,
						Max = 8500L * 1000,
					},
				},

				new TestCaseMapCompareByRefNezDif<string, IInventoryCapacityGauge>()
				{
					In = "3 921,5/5 000,0 м³",
					Out = new   InventoryCapacityGauge()
					{
						Used = 3921500L,
						Max = 5000L * 1000
					},
				},
			};

{'fraction_non_alphanumeric': 0.10335804622764937, 'fraction_numerical': 0.05276929786306149, 'mean_word_length': 2.804311774461028, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 16, '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': '4663102', 'n_tokens_mistral': 1136, 'n_tokens_neox': 778, 'n_words': 163}