Tests.m 853 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // ZZFoundationTests.m
  3. // ZZFoundationTests
  4. //
  5. // Created by bymiracles@163.com on 12/24/2020.
  6. // Copyright (c) 2020 bymiracles@163.com. All rights reserved.
  7. //
  8. // https://github.com/kiwi-bdd/Kiwi
  9. #import <Kiwi/Kiwi.h>
  10. #import "NSString+ZZPath.h"
  11. SPEC_BEGIN(StringTest)
  12. describe(@"file directory", ^{
  13. context(@"of cache", ^{
  14. id value = [@"fileName" ZZCacheDir];
  15. it(@"should be string class", ^{
  16. [[value should] beKindOfClass:[NSString class]];
  17. });
  18. it(@"should has suffix fileName", ^{
  19. [[value should] containString:@"/Library/Caches/fileName"];
  20. });
  21. });
  22. context(@"will pass", ^{
  23. it(@"can do maths", ^{
  24. [[@1 should] beLessThan:@23];
  25. });
  26. it(@"can read", ^{
  27. [[@"team" shouldNot] containString:@"I"];
  28. });
  29. });
  30. });
  31. SPEC_END