Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect line character when merging a single and double line box #37

Open
goblinfactory opened this issue Dec 30, 2019 · 1 comment
Open
Assignees
Milestone

Comments

@goblinfactory
Copy link
Owner

goblinfactory commented Dec 30, 2019

            var console = new MockConsole(12, 10);
            var line = new Draw(console, LineThickNess.Single, Merge);
            line.Box(0, 0, 8, 6, LineThickNess.Double);
            line.Box(3, 3, 11, 9, LineThickNess.Single);
           
         // produces the following output with invalid vertical line
       
            console.Buffer.Should().BeEquivalentTo(new[]
            {
               "╔═══════╗   ",
               "║       ║   ",
               "║       ║   ",
               "║  ┌────│──┐",
               "║  │    ║  │",
               "║  │    ║  │",
               "╚══╪════╝  │",
               "   │       │",
               "   │       │",
               "   └───────┘"
            });

Note the invalid vertical line at the intersection.

@goblinfactory
Copy link
Owner Author

will be fixed when completing #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant