This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| // Define different scenarios for t5 using Dart records | |
| // (String name, double t5_value, String expected_behavior) | |
| final List<(String name, double t5Value, String expectedBehavior)> scenarios = | |
| [ | |
| ('t5 is a regular number', 1.0, 'Simplification is okay'), | |
| ( | |
| 't5 is positive Infinity', | |
| double.infinity, | |
| 'Simplification breaks due to NaN', |
OlderNewer