From 2e7527c5503fde9c32b86ae4c14d357494852169 Mon Sep 17 00:00:00 2001 From: Tim Nugent Date: Fri, 8 Apr 2022 11:52:48 +1000 Subject: [PATCH] Updated metadata test to support lastline --- Tests/Editor/Editor Test Resources/TestYarnProject-Metadata.csv | 2 +- Tests/Editor/YarnImporterTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Editor/Editor Test Resources/TestYarnProject-Metadata.csv b/Tests/Editor/Editor Test Resources/TestYarnProject-Metadata.csv index 80f91469..8e0b8538 100644 --- a/Tests/Editor/Editor Test Resources/TestYarnProject-Metadata.csv +++ b/Tests/Editor/Editor Test Resources/TestYarnProject-Metadata.csv @@ -1,3 +1,3 @@ id,file,node,lineNumber,metadata -line:0967160,Packages/dev.yarnspinner.unity/Tests/Editor/TestYarnScript.yarn,Start,8,linemetadata +line:0967160,Packages/dev.yarnspinner.unity/Tests/Editor/TestYarnScript.yarn,Start,8,linemetadata lastline line:04e806e,Packages/dev.yarnspinner.unity/Tests/Editor/TestYarnScript.yarn,Start,9,linemetadata linemetadata2 diff --git a/Tests/Editor/YarnImporterTests.cs b/Tests/Editor/YarnImporterTests.cs index 7d11a871..ebec5d7a 100644 --- a/Tests/Editor/YarnImporterTests.cs +++ b/Tests/Editor/YarnImporterTests.cs @@ -372,7 +372,7 @@ public void YarnProjectImporter_UpdatesLineMetadata_WhenBaseScriptChanges() // Assert: verify the line metadata exists and contains the expected number of entries. Assert.NotNull(project.lineMetadata); - Assert.AreEqual(project.lineMetadata.GetLineIDs().Count(), 1); + Assert.AreEqual(project.lineMetadata.GetLineIDs().Count(), 2); } [Test]