Tests.m 854 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // LXMPlayerTests.m
  3. // LXMPlayerTests
  4. //
  5. // Created by billthas@gmail.com on 08/28/2018.
  6. // Copyright (c) 2018 billthas@gmail.com. All rights reserved.
  7. //
  8. // https://github.com/Specta/Specta
  9. SpecBegin(InitialSpecs)
  10. describe(@"these will fail", ^{
  11. it(@"can do maths", ^{
  12. expect(1).to.equal(2);
  13. });
  14. it(@"can read", ^{
  15. expect(@"number").to.equal(@"string");
  16. });
  17. it(@"will wait for 10 seconds and fail", ^{
  18. waitUntil(^(DoneCallback done) {
  19. });
  20. });
  21. });
  22. describe(@"these will pass", ^{
  23. it(@"can do maths", ^{
  24. expect(1).beLessThan(23);
  25. });
  26. it(@"can read", ^{
  27. expect(@"team").toNot.contain(@"I");
  28. });
  29. it(@"will wait and succeed", ^{
  30. waitUntil(^(DoneCallback done) {
  31. done();
  32. });
  33. });
  34. });
  35. SpecEnd