mirror of
https://github.com/textmate/textmate.git
synced 2026-02-14 08:24:56 -05:00
23 lines
398 B
C++
23 lines
398 B
C++
#include <text/case.h>
|
|
|
|
using namespace text;
|
|
|
|
class CaseTests : public CxxTest::TestSuite
|
|
{
|
|
public:
|
|
void test_upcase ()
|
|
{
|
|
TS_ASSERT_EQUALS(uppercase("æbleGRØD"), "ÆBLEGRØD");
|
|
}
|
|
|
|
void test_downcase ()
|
|
{
|
|
TS_ASSERT_EQUALS(lowercase("æbleGRØD"), "æblegrød");
|
|
}
|
|
|
|
void test_togglecase ()
|
|
{
|
|
TS_ASSERT_EQUALS(opposite_case("Den Grønne æbleGRØD"), "dEN gRØNNE ÆBLEgrød");
|
|
}
|
|
};
|