Skip to content

Commit 4b9346a

Browse files
committedApr 24, 2025
update to keep in synch with bookbase
1 parent ec374e3 commit 4b9346a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed
 

‎text/main/controlFlow/exceptions/exceptions.tex

+4-3
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
\end{enumerate}%
101101
%
102102
\bestPractice{exceptions}{%
103-
Errors should \emph{not} be ignored and input should \emph{not} be artificially sanitized. %
104-
Instead, the input of our functions should be checked for validity wherever reasonable. %
103+
Errors should \emph{not} be ignored and input data should \emph{not} be artificially sanitized. %
104+
Instead, the input of functions should be checked for validity wherever reasonable. %
105105
Faulty input should always be signaled by errors breaking the program flow. %
106106
\pythonilsIdx{Exception} should be raised as early as possible and whenever an unexpected situation occurs.%
107107
}%
@@ -657,7 +657,8 @@
657657
%
658658
\gitOutputTool{\programmingWithPythonCodeRepo}{.}{_scripts_/pytest.sh exceptions test_sqrt.py}{exceptions:test_sqrt:pytest}{%
659659
The output of the \pglspl{unitTest} in \cref{lst:exceptions:test_sqrt}: %
660-
No error was raised in it, so the first fails and the error message in the second test does not fit, so it fails as well.}%
660+
No error was raised in it, so the first test fails. %
661+
The error message in the second test does not fit, so it fails as well.}%
661662
%
662663
In particular, we can provide the exception class as well as a \pgls{regex} via the parameter~\pythonil{match} to \pythonilIdx{raises}.
663664
If the block does not raise an exception of the expected type, the test fails.

‎text/main/controlFlow/functions/functions.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,10 @@
498498
Instead, in addition to its fundamentally embeddable design, several characteristics combine to make \sqlite\ useful in a broad range of scenarios.
499499
In particular, \sqlite\ strives to be:\par\relax[\dots]\par\relax%
500500
\textbf{Reliable}.
501-
There are over 600~lines of test code for every line of code in \sqlite~\cite{HO2023WKUOS}.
501+
There are over 600~lines of test code for every line of code in \sqlite~\cite{HWACIS:HO2023WKUOS}.
502502
Tests cover 100\% of branches in the library.
503503
The test suite is extremely diverse, including fuzz tests, boundary value tests, regression tests, and tests that simulate operating system crashes, power losses, I/O~errors, and out-of-memory errors.
504-
Due to its reliability, \sqlite\ is often used in mission-critical applications such as flight software~\cite{HO2024HSIT}%
504+
Due to its reliability, \sqlite\ is often used in mission-critical applications such as flight software~\cite{HWACIS:HO2024HSIT}%
505505
}%
506506
%
507507
\sqlite\ is the most used \pgls{SQL} \pgls{db} in the world.

0 commit comments

Comments
 (0)