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

Add unit test for XKCD 3038 alt-text #377

Merged
merged 3 commits into from
Jan 15, 2025
Merged

Add unit test for XKCD 3038 alt-text #377

merged 3 commits into from
Jan 15, 2025

Conversation

chiphogg
Copy link
Contributor

See for context: https://xkcd.com/3038/. Presumably, the joke only
works if the speed limit in question corresponds to a realistic speed
limit for American roads, so we take the range to be from 25 MPH (many
residential streets) to 75 MPH (some roads in places I have seen such as
parts of MI or TX).

To make this work, it was convenient to add unit definitions for
Arcminutes and Arcseconds. These have various choices for unit
symbol, but I decided to go with am and as because this will be the
most consistent with users who form symbols for mas and uas.

For the labels, in any case, I went with ' and ". I could be
persuaded to go with '' for arcseconds, but I think " is likely to
be better overall.

We also now group all of our XKCD test cases into an Xkcd test family,
because of course we do.

See for context: <https://xkcd.com/3038/>.  Presumably, the joke only
works if the speed limit in question corresponds to a realistic speed
limit for American roads, so we take the range to be from 25 MPH (many
residential streets) to 75 MPH (some roads in places I have seen such as
parts of MI or TX).

To make this work, it was convenient to add unit definitions for
`Arcminutes` and `Arcseconds`.  These have various choices for unit
symbol, but I decided to go with `am` and `as` because this will be the
most consistent with users who form symbols for `mas` and `uas`.

For the labels, in any case, I went with `'` and `"`.  I could be
persuaded to go with `''` for arcseconds, but I think `"` is likely to
be better overall.

We also now group all of our XKCD test cases into an `Xkcd` test family,
because of course we do.
@chiphogg chiphogg added the release notes: 📏 lib (new units/constants) PR adding new units or constants to the library label Jan 15, 2025
Copy link
Contributor

@geoffviola geoffviola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂

@chiphogg chiphogg merged commit 598de94 into main Jan 15, 2025
14 checks passed
@chiphogg chiphogg deleted the chiphogg/xkcd-3038 branch January 15, 2025 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: 📏 lib (new units/constants) PR adding new units or constants to the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants