Usage example is integer #657
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I added a Utilities usage example for is_integer. The program is reading text lines and printing whether each is an integer; it is exiting when the user types q.
Type of change
How Has This Been Tested?
I verified the example locally in two steps. First, I ran each language individually: C++ with SplashKit, C# top-level and C# OOP with dotnet run. I confirmed that valid integers report “Integer”, non-integers report “Not integer”, and typing q or quit exits. Second, I added the files to the repository and ran npm run build followed by npm run preview; I opened the Utilities page and confirmed the example rendered and the GIF displayed.
Testing Checklist
Checklist
If involving code
Folders and Files Added
src/assets/usage-examples-code/utilities/is_integer/is_integer-1-basic.cpp
src/assets/usage-examples-code/utilities/is_integer/is_integer-1-basic.cs
src/assets/usage-examples-code/utilities/is_integer/is_integer-1-basic-oop.cs
src/assets/usage-examples-code/utilities/is_integer/is_integer-1-basic.txt
public/usage-examples-images-gifs/utilities/is_integer-1-basic.gif