Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

co19 tests - add tests for enhanced enums #1258

Closed
Tracked by #47849
devoncarew opened this issue Jan 6, 2022 · 9 comments
Closed
Tracked by #47849

co19 tests - add tests for enhanced enums #1258

devoncarew opened this issue Jan 6, 2022 · 9 comments
Assignees

Comments

@devoncarew
Copy link
Member

No description provided.

@devoncarew devoncarew transferred this issue from dart-lang/sdk Jan 6, 2022
@devoncarew devoncarew added this to To do in enhanced-enums via automation Jan 6, 2022
@devoncarew devoncarew changed the title co19 tests - add tests for enhanced enums (todo:) co19 tests - add tests for enhanced enums Jan 6, 2022
@devoncarew
Copy link
Member Author

(I haven't looked to see whether we already have these tests)

@eernstg
Copy link
Member

eernstg commented Jan 7, 2022

@sgrekhov, @iarkh, could you add a comment here when you consider these tests done?

@sgrekhov sgrekhov self-assigned this Jan 10, 2022
@sgrekhov
Copy link
Contributor

@devoncarew @eernstg, for now tests for Enhanced Enums are mainly completed. Spec was slightly changed and I need to check these changes and update the tests accordingly. I'll let you know when I'll finish with it. Don't thuink that it'll take much time

copybara-service bot pushed a commit to dart-lang/sdk that referenced this issue Jan 13, 2022
2022-01-12 sgrekhov@unipro.ru dart-lang/co19#1259. Roll failures fixed
2022-01-12 sgrekhov@unipro.ru dart-lang/co19#1258. Enhanced Enums semantics tests rewritten according to changed spec
2022-01-12 sgrekhov@unipro.ru Fixes dart-lang/co19#1261. Expected result value fixed
2022-01-11 sgrekhov@unipro.ru dart-lang/co19#1259. Different roll failures fixed (mainly typos)
2022-01-11 sgrekhov@unipro.ru Fixes dart-lang/co19#1247. Allow positional parameters with the different name than in superclass
2022-01-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1248. Add additional error expectation
2022-01-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1256. Use correct type of super parameters. Expect an error if the type is wrong
2022-01-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1255. Use nullable type parameter for type check
2022-01-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1254. Typo fixed
2022-01-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1253. Typo fixed
2022-01-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1252. Typo fixed
2022-01-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1251. Default value is added to non-nullable optional argument
2022-01-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1250. Named parameter made named in a constructor call
2022-01-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1249. Missed superconstructor added
2022-01-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1246. Use correct type for type inference
2021-12-28 rmacnak@google.com Avoid sender making more progress than the receiver in Isolate/pause_A01_t01/2. (dart-lang/co19#1242)
2021-12-28 sgrekhov@unipro.ru Fixes dart-lang/co19#1243. Runtime type checks added to typed_data tests
2021-12-27 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime type checks added to io and match tests
2021-12-24 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime type checks added
2021-12-23 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime type checks added to Spread collections tests
2021-12-23 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime type checks moved to Expect class
2021-12-23 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime type checks added to Set literals tests
2021-12-23 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime type checks added to Expect class
2021-12-22 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime type checks added for nnbd tests
2021-12-22 sgrekhov@unipro.ru dart-lang/co19#1244 CHECK_TOP_MERGE replaced by CheckTopMerge
2021-12-22 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime type checks added for nnbd tests
2021-12-21 sgrekhov@unipro.ru Fixes dart-lang/co19#1245. Fix checking type of Enum members
2021-12-20 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime type checks added for Control flow collections, Constructor tear-offs and Generic functions as type arguments
2021-12-17 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime checks added for statements which can be optimized to 'true' or 'false'
2021-12-16 irina.arkhipets@gmail.com Issue dart-lang/co19#1244: Utils functions updated according to the Effective Dart Guide, relative tests updated accordingly.
2021-12-16 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime checks added for statements which can be optimized to 'true' or 'false'
2021-12-15 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime checks added for statements which can be optimized to 'true' or 'false'
2021-12-15 sgrekhov@unipro.ru dart-lang/co19#1243 Expect.isTrue() is returned back for type checking
2021-12-14 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime checks added for statements which can be optimized to 'true' or 'false'
2021-12-13 irina.arkhipets@gmail.com Issue dart-lang/co19#1094: minor improvement for Utils/test_mode_check
2021-12-13 sgrekhov@unipro.ru dart-lang/co19#1243 Runtime checks added for statements which can be optimized to 'true' or 'false'

Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try
Change-Id: I8b2b346600c03061b8b735be874c3f377d70b354
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227800
Reviewed-by: William Hesse <whesse@google.com>
copybara-service bot pushed a commit to dart-lang/sdk that referenced this issue Jan 20, 2022
2022-01-19 irina.arkhipets@gmail.com Fixes dart-lang/co19#1275: Test expectations corrected.
2022-01-18 irina.arkhipets@gmail.com Fixes dart-lang/co19#1274: LanguageFeatures/Super-parameters/summary_A04_t02 test corrected: Expect.approxEquals is used instead of Expect.equals for the double comparing.
2022-01-18 irina.arkhipets@gmail.com Issue dart-lang/co19#1244: LanguageFeatures/Constructor-tear-offs/unnamed_constructor_A06_t01 test should not run for dart2js because it uses mirrors.
2022-01-14 sgrekhov@unipro.ru dart-lang/co19#1262. Roll failures fixed
2022-01-14 sgrekhov@unipro.ru dart-lang/co19#1258. Enhanced Enums semantics tests added
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1269. Missed default constructor added to enum declaration
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1273. Typo fixed
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1271. Typo fixed
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1270. Fix expected result values
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1268. Runtime type check fixed
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1267. Error expectation added
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1266. Default value added to non-nullable parameter
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1272. Runtime type check fixed
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1265. Invalid assignment fixed
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1264. Super parameter name fixed
2022-01-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1263. Add default value to non-nullable parameter
2022-01-13 sgrekhov@unipro.ru dart-lang/co19#1258. Enhanced Enums semantics tests rewritten according to changed spec

Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try
Change-Id: I7001196297890f485f4b506898fff8cff1b3a0d5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/228646
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
enhanced-enums automation moved this from To do to Done Jan 25, 2022
@sgrekhov sgrekhov reopened this Jan 26, 2022
enhanced-enums automation moved this from Done to In progress Jan 26, 2022
@sgrekhov
Copy link
Contributor

sgrekhov commented Feb 4, 2022

@devoncarew @eernstg I believe that Enhanced ennums tests are ready. But I'm expecting a change in the specification which should forbid allow user-written index and values. So, not closing this issue yet

@eernstg
Copy link
Member

eernstg commented Feb 4, 2022

Very good! The spec update is taking place in dart-lang/language#2080.

@eernstg
Copy link
Member

eernstg commented Feb 4, 2022

Said spec update has just been landed.

sgrekhov pushed a commit that referenced this issue Feb 7, 2022
enhanced-enums automation moved this from In progress to Done Feb 9, 2022
@sgrekhov
Copy link
Contributor

@eernstg @devoncarew I believe Enhanced Enums tests are completed.

@eernstg
Copy link
Member

eernstg commented Feb 11, 2022

We still need to settle whether the following is an error:

abstract class I {
  Never get index;
}

mixin M on Enum implements I {}

The point is that M cannot ever be part of a concrete class, because that class would have to implement Never get index, and it would have to be an enum, and hence it would be an error to override index.

The alternative is that we could declare the error when it arises, in each enum that uses with M or implements M. Those errors will be reported anyway, that should not be news. But it is usually helpful if we can report errors early rather than late, so it would be nice if we could flag M as an error.

@sgrekhov sgrekhov reopened this Feb 11, 2022
enhanced-enums automation moved this from Done to In progress Feb 11, 2022
copybara-service bot pushed a commit to dart-lang/sdk that referenced this issue Feb 14, 2022
2022-02-11 sgrekhov@unipro.ru dart-lang/co19#1260. WeakReference.target test added
2022-02-11 sgrekhov@unipro.ru dart-lang/co19#1260. Test that use ffi moved to a separate directory
2022-02-11 sgrekhov@unipro.ru dart-lang/co19#1260. Optional parameters added to triggerGcWithDelay()
2022-02-10 irina.arkhipets@gmail.com dart-lang/co19#1260: Added tests for Finalizer.attach method.
2022-02-10 sgrekhov@unipro.ru dart-lang/co19#1260. Unnecessary delays removed form WeakReference tests
2022-02-10 sgrekhov@unipro.ru dart-lang/co19#1292. Compile error in Enhanced enums example fixed
2022-02-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1297. User-written 'index' is not allowed
2022-02-10 sgrekhov@unipro.ru Fixes dart-lang/co19#1293. Change expected error location in analyzer
2022-02-09 irina.arkhipets@gmail.com dart-lang/co19#1260: Added tests for Finalizer.
2022-02-09 sgrekhov@unipro.ru dart-lang/co19#1258. Enhanced enums test fixed, issue numbers added
2022-02-09 irina.arkhipets@gmail.com dart-lang/co19#1260: Added tests for Finalizer.
2022-02-08 irina.arkhipets@gmail.com dart-lang/co19#1260: Added tests for Finalizer.
2022-02-08 sgrekhov@unipro.ru dart-lang/co19#1258. Add more tests on user-written 'index' and 'values'
2022-02-08 sgrekhov@unipro.ru dart-lang/co19#1289. More roll failures fixed
2022-02-08 sgrekhov@unipro.ru dart-lang/co19#1289. Roll failures fixed
2022-02-08 sgrekhov@unipro.ru Fixes dart-lang/co19#1290. Constant constructors can't have a body
2022-02-08 irina.arkhipets@gmail.com dart-lang/co19#1260: Updated LanguageFeatures/FinalizationRegistry/Finalizer tests.
2022-02-07 sgrekhov@unipro.ru dart-lang/co19#1258. Update Enhanced Enums test. Now user-written 'values' and 'index' are not allowed
2022-02-07 sgrekhov@unipro.ru Fixes dart-lang/co19#1288. Remove 'index' declaration

Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-debug-x64-try,vm-kernel-nnbd-linux-release-simarm-try,vm-kernel-nnbd-linux-release-simarm64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-precomp-nnbd-linux-debug-x64-try,vm-kernel-precomp-nnbd-linux-release-simarm64-try,vm-kernel-precomp-nnbd-linux-release-x64-try,vm-kernel-precomp-nnbd-mac-release-simarm64-try,vm-kernel-precomp-nnbd-win-release-x64-try
Change-Id: I67d2028c58733088b5e46ea83092af1fa41c3c53
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232600
Reviewed-by: William Hesse <whesse@google.com>
sgrekhov pushed a commit that referenced this issue Feb 25, 2022
copybara-service bot pushed a commit to dart-lang/sdk that referenced this issue Mar 17, 2022
2022-03-16 eernst@google.com Fixes needed based on roll f5124538 (dart-lang/co19#1323)
2022-03-14 sgrekhov@unipro.ru Fixes dart-lang/co19#1310. Add language version 2.16 (dart-lang/co19#1314)
2022-03-10 519320+chloestefantsova@users.noreply.github.com Correct an enhanced-enum test to alow setters named values (dart-lang/co19#1312)
2022-02-25 sgrekhov@unipro.ru dart-lang/co19#993. Added tests for Abi class
2022-02-25 sgrekhov@unipro.ru dart-lang/co19#1258. Added test for a generic enum which does have a regular-bounded instantiate-to-bounds result
2022-02-24 sgrekhov@unipro.ru Fixes dart-lang/co19#1308. Make `UriData` tests case-insensitive
2022-02-24 sgrekhov@unipro.ru dart-lang/co19#1258. Not regular-bounded enum test added
2022-02-21 irina.arkhipets@gmail.com Merge remote-tracking branch 'remotes/origin/weak-reference-fix'
2022-02-21 sgrekhov@unipro.ru Revert accidental commits
2022-02-21 sgrekhov@unipro.ru dart-lang/co19#1305. Some cascaded errors previously reported by CFE removed
2022-02-21 sgrekhov@unipro.ru dart-lang/co19#1258. Added tests for overridden == operator
2022-02-21 sgrekhov@unipro.ru dart-lang/co19#1260. Added test for callback that throws an exception
2022-02-21 sgrekhov@unipro.ru Fixes dart-lang/co19#1307. Remove overridden == operator from enum
2022-02-21 sgrekhov@unipro.ru dart-lang/co19#1305. Some cascaded errors previously reported by CFE removed
2022-02-21 sgrekhov@unipro.ru dart-lang/co19#1260. Added test for callback that throws an exception
2022-02-21 sgrekhov@unipro.ru dart-lang/co19#1258. Added tests for overridden == operator
2022-02-20 sgrekhov@unipro.ru Fixes dart-lang/co19#1307. Remove overridden == operator from enum
2022-02-19 sgrekhov@unipro.ru dart-lang/co19#1260. Fixed tests that check attachment of the same object to finalizer several times
2022-02-18 irina.arkhipets@gmail.com dart-lang/co19#1260: Weak reference tests updated.
2022-02-18 sgrekhov@unipro.ru dart-lang/co19#1258. More implementing enums tests added
2022-02-17 sgrekhov@unipro.ru Fixes dart-lang/sdkdart-lang/co19#48412. Different issues fixed in Finalizer tests
2022-02-17 sgrekhov@unipro.ru dart-lang/co19#1260. Finalizer test improved
2022-02-17 sgrekhov@unipro.ru dart-lang/co19#1260. Minor code enhancement
2022-02-16 sgrekhov@unipro.ru dart-lang/co19#1260. Typo fixed
2022-02-16 sgrekhov@unipro.ru dart-lang/co19#1260. Fix attach to finalizer tests
2022-02-16 sgrekhov@unipro.ru dart-lang/co19#1260. Finalizer tests fixed and refactored
2022-02-16 sgrekhov@unipro.ru dart-lang/co19#1260. Another WeakReference tests added
2022-02-15 irina.arkhipets@gmail.com dart-lang/co19#1260: Finalizer tests updated.
2022-02-15 sgrekhov@unipro.ru Fixes dart-lang/sdkdart-lang/co19#48391. Use function with 'no-inline' to create a WeakReference and to lost link to its target
2022-02-15 irina.arkhipets@gmail.com dart-lang/co19#1260: Finalizer tests updated.
2022-02-14 sgrekhov@unipro.ru dart-lang/co19#130. Roll failure fixed

Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-debug-x64-try,vm-kernel-nnbd-linux-release-simarm-try,vm-kernel-nnbd-linux-release-simarm64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-precomp-nnbd-linux-debug-x64-try,vm-kernel-precomp-nnbd-linux-release-simarm64-try,vm-kernel-precomp-nnbd-linux-release-x64-try,vm-kernel-precomp-nnbd-mac-release-simarm64-try,vm-kernel-precomp-nnbd-win-release-x64-try
Change-Id: Icc2bea05df29e00b671b2843af7c3c55fa45da35
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237581
Reviewed-by: William Hesse <whesse@google.com>
@leafpetersen
Copy link
Member

I believe no further work here is planned.

enhanced-enums automation moved this from In progress to Done May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

4 participants