From d727d9ccd4447c98944f26c3c85d6077279839d9 Mon Sep 17 00:00:00 2001
From: Simon Devauchelle <devauchelle@lisn.fr>
Date: Thu, 22 Feb 2024 17:40:19 +0100
Subject: [PATCH] Updating speechrecfsts.jl

---
 test/speechrecfsts.jl | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/test/speechrecfsts.jl b/test/speechrecfsts.jl
index c5e3495..bb32910 100644
--- a/test/speechrecfsts.jl
+++ b/test/speechrecfsts.jl
@@ -28,14 +28,27 @@ S = BoolSemiring
 
     U2 = TensorFST(
         [
-            (src = (5,), isym = 5, osym = 4, weight = one(S), dest = (6,)),
-            (src = (2,), isym = 2, osym = 1, weight = one(S), dest = (2,)),
-            (src = (3,), isym = 3, osym = 3, weight = one(S), dest = (4,)),
-            (src = (4,), isym = 4, osym = 1, weight = one(S), dest = (4,)),
-            (src = (1,), isym = 1, osym = 2, weight = one(S), dest = (2,)),
-            (src = (6,), isym = 6, osym = 1, weight = one(S), dest = (6,))
+            # # Extra node
+			# Source
+			(src = (7,), isym = 0, osym = 4, weight = one(S), dest = (5,)),
+            (src = (7,), isym = 0, osym = 3, weight = one(S), dest = (3, )),
+            (src = (7,), isym = 0, osym = 2, weight = one(S), dest = (1,)),
+			# Destination
+			(src = (6,), isym = 0, osym = 0, weight = one(S), dest = (7,)),
+            (src = (4,), isym = 0, osym = 0, weight = one(S), dest = (7, )),
+            (src = (2,), isym = 0, osym = 0, weight = one(S), dest = (7,)),
+			
+			
+			# Nodes tensorFST
+			(src = (5,), isym = 6, osym = 0, weight = one(S), dest = (6,)),
+            (src = (2,), isym = 2, osym = 0, weight = one(S), dest = (2,)),
+            (src = (3,), isym = 4, osym = 0, weight = one(S), dest = (4,)),
+            (src = (4,), isym = 4, osym = 0, weight = one(S), dest = (4,)),
+            (src = (1,), isym = 2, osym = 0, weight = one(S), dest = (2,)),
+            (src = (6,), isym = 6, osym = 0, weight = one(S), dest = (6,)),
+			
         ],
-        [(5,) => one(S), (3,) => one(S), (1,) => one(S)],
+        [(7,) => one(S)],
         [(4,) => one(S), (6,) => one(S), (2,) => one(S)],
     )
     @test issame(U, U2)
-- 
GitLab