Skip to content

Commit

Permalink
Do some TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinkton committed Jan 14, 2021
1 parent 4bd88a3 commit 3bf0a17
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Texto-TextQuestEngine/Model/Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static string getPathThatLinkedByShortcut(string shortcutPath)
}
else
{
parentFolder = path.Take(parentFolderLength).ToString();
parentFolder = path.Substring(0, parentFolderLength);
}

string relativeLink = getRelativePath(link.TargetPath, parentFolder);
Expand Down
3 changes: 0 additions & 3 deletions Texto-TextQuestEngine/Model/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@

namespace Model
{
//TODO: Check of line break's validate, because line break may be diffirent, it dependences from editor of text
//TODO: Split classes on smaller classes, it are so huge
//TODO: Write samples
//TODO: Fix up a bug, when shortcut link on a empty folder (and shortcuts don't work at all)
//TODO: In variants user creator don't can to write "?"
class Program
{
static void Main()
Expand Down
4 changes: 2 additions & 2 deletions Texto-TextQuestEngine/UnitTests/ViewUnit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public void GetDescriptionUnit()
{
string[] expectedDescriptions = new string[]
{
"#",
"Description in \"quest\"",
null,
"321"
"Description in \"without variants\""
};

string[] actualDescriptions = new string[]
Expand Down
5 changes: 4 additions & 1 deletion Texto-TextQuestEngine/View/Visualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ private static void visualizeVariants(string path)

for (int i = 1; i < variants.Length+1; i++)
{
Console.WriteLine(i + ". " + variants[i - 1]);
//User do not can use "?" symbol in name of folders, then, in this program it stands for "#q"
string handledVariant = variants[i - 1].Replace("#q", "?");

Console.WriteLine(i + ". " + handledVariant);
}
}
#endregion
Expand Down

0 comments on commit 3bf0a17

Please sign in to comment.