Tests.m 882 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // ZZUIKitTests.m
  3. // ZZUIKitTests
  4. //
  5. // Created by bymiracles@163.com on 01/04/2021.
  6. // Copyright (c) 2021 bymiracles@163.com. All rights reserved.
  7. //
  8. // https://github.com/kiwi-bdd/Kiwi
  9. SPEC_BEGIN(InitialTests)
  10. describe(@"My initial tests", ^{
  11. context(@"will fail", ^{
  12. it(@"can do maths", ^{
  13. [[@1 should] equal:@2];
  14. });
  15. it(@"can read", ^{
  16. [[@"number" should] equal:@"string"];
  17. });
  18. it(@"will wait and fail", ^{
  19. NSObject *object = [[NSObject alloc] init];
  20. [[expectFutureValue(object) shouldEventually] receive:@selector(autoContentAccessingProxy)];
  21. });
  22. });
  23. context(@"will pass", ^{
  24. it(@"can do maths", ^{
  25. [[@1 should] beLessThan:@23];
  26. });
  27. it(@"can read", ^{
  28. [[@"team" shouldNot] containString:@"I"];
  29. });
  30. });
  31. });
  32. SPEC_END