Skip to content

Commit

Permalink
Secret Agent: Add attribute tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Malvineous committed May 8, 2016
1 parent f7863f4 commit 33643cf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/test-map-sagent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ class test_map_sagent: public test_map2d
// technically correct because the formats are the same, only the
// tile mapping is different. So we skip the test to avoid an error.
this->skipInstDetect.push_back("map-sagent-world");

{
this->attributes.emplace_back();
auto& a = this->attributes.back();
a.type = Attribute::Type::Enum;
a.enumValue = 0;
}
}

void addTests()
Expand Down Expand Up @@ -97,6 +104,18 @@ class test_map_sagent: public test_map2d
"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO\x0D\x0A"
) + std::string(42 * (48 - 6), '\0')
);

// Attribute 00: BG tile
this->changeAttribute(0, 6, STRING_WITH_NULLS(
"333 \x0D\x0A"
" 3567 \x0D\x0A"
"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO\x0D\x0A"
"O " " " " O\x0D\x0A"
"O 567" " \xD2" " O\x0D\x0A"
"* d " " f" " \x0D\x0A"
"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO\x0D\x0A"
) + std::string(42 * (48 - 7), '\0')
);
}

virtual std::string initialstate()
Expand Down

0 comments on commit 33643cf

Please sign in to comment.