Skip to content

Commit

Permalink
some PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Apr 8, 2020
1 parent 45d9f06 commit 1cc1035
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .github/actions/spell-check/whitelist/alphabet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ ABCDEFGHIJ
abcdefghijk
abcdefghijklmnop
ABCDEFGHIJKLMNOPQRST
ABCDEFGHIJKLMNOPQRSTQ
abcdefghijklmnopqrstuvwxyz
QQQQQQQQQQABCDEFGHIJ
QQQQQQQQQQABCDEFGHIJKLMNOPQRSTQQQQQQQQQ
QQQQQQQQQQABCDEFGHIJKLMNOPQRSTQQQQQQQQQQ
QQQQQQQQQQABCDEFGHIJPQRSTQQQQQQQQQQ
ABCDEFGHIJPQRSTQ
qrstuvwxyz
qwerty
QWERTYUIOP
Expand Down
8 changes: 3 additions & 5 deletions src/cascadia/UnitTests_TerminalCore/ConptyRoundtripTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,11 @@ namespace TerminalCoreUnitTests
};
using namespace TerminalCoreUnitTests;

// Helper for declaring a variable to store a TEST_METHOD_PROPERTY and get it's value from the test metadata
#define INIT_TEST_PROPERTY(type, identifer, description) \
type identifer; \
VERIFY_SUCCEEDED(TestData::TryGetValue(L#identifer, identifer), description);

class TerminalCoreUnitTests::ConptyRoundtripTests final
{
// !!! DANGER: Many tests in this class expect the Terminal and Host buffers
// to be 80x32. If you change these, you'll probably inadvertently break a
// bunch of tests !!!
static const SHORT TerminalViewWidth = 80;
static const SHORT TerminalViewHeight = 32;

Expand Down
3 changes: 3 additions & 0 deletions src/host/ut_host/ConptyOutputTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ using namespace Microsoft::Console::Types;

class ConptyOutputTests
{
// !!! DANGER: Many tests in this class expect the Terminal and Host buffers
// to be 80x32. If you change these, you'll probably inadvertently break a
// bunch of tests !!!
static const SHORT TerminalViewWidth = 80;
static const SHORT TerminalViewHeight = 32;

Expand Down
5 changes: 5 additions & 0 deletions src/inc/consoletaeftemplates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Revision History:

#pragma once

// Helper for declaring a variable to store a TEST_METHOD_PROPERTY and get it's value from the test metadata
#define INIT_TEST_PROPERTY(type, identifer, description) \
type identifer; \
VERIFY_SUCCEEDED(TestData::TryGetValue(L#identifer, identifer), description);

namespace WEX::TestExecution
{
template<>
Expand Down

1 comment on commit 1cc1035

@github-actions

This comment was marked as resolved.

Please sign in to comment.