MATLABĀ® Test Report

Timestamp:

18-Oct-2024 20:11:22

Host:

fv-az651-895

Platform:

glnxa64

MATLAB Version:

24.2.0.2740171 (R2024b) Update 1

Number of Tests:

12

Testing Time:

45.4614 seconds

Overall Result:

PASSED

Overview

/home/runner/work/Programming-Structuring-Code/Programming-Structuring-Code/SoftwareTests/

SmokeTests

25.1334 seconds

SolnSmokeTests

20.3281 seconds

Details

/home/runner/work/Programming-Structuring-Code/Programming-Structuring-Code/SoftwareTests/

SmokeTests

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=CommentingCode.mlx

The test passed. Duration: 11.3052 seconds

Event:

Timestamp: 18-Oct-2024 20:10:41

Verbosity: Terse

Logged Diagnostic:

Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_23f56ca8-9918-4c4c-8e5c-0ce267ad7074.png

Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=CommentingCode.mlx)

Stack:

In /home/runner/work/Programming-Structuring-Code/Programming-Structuring-Code/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 94

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=Debugging.mlx

The test passed. Duration: 1.2670 seconds

Event:

Timestamp: 18-Oct-2024 20:10:45

Verbosity: Terse

Logged Diagnostic:

Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_7b38f70a-5cb2-4562-9c1a-19abe10596c3.png

Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=Debugging.mlx)

Stack:

In /home/runner/work/Programming-Structuring-Code/Programming-Structuring-Code/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 94

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=Functions.mlx

The test passed. Duration: 12.4959 seconds

Event:

Timestamp: 18-Oct-2024 20:10:58

Verbosity: Terse

Logged Diagnostic:

Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_5ce7e4f4-562c-4428-8448-726d693ebe2c.png

Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=Functions.mlx)

Stack:

In /home/runner/work/Programming-Structuring-Code/Programming-Structuring-Code/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 94

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=SharingCode.mlx

The test passed. Duration: 0.0651 seconds

(Overview)

SolnSmokeTests

ExistSolns Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=CommentingCode.mlx

The test passed. Duration: 0.0620 seconds

(Overview)

ExistSolns Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=Debugging.mlx

The test passed. Duration: 0.0127 seconds

(Overview)

ExistSolns Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=Functions.mlx

The test passed. Duration: 0.0114 seconds

(Overview)

ExistSolns Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=SharingCode.mlx

The test passed. Duration: 0.0107 seconds

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=CommentingCode.mlx

The test passed. Duration: 8.5834 seconds

Event:

Timestamp: 18-Oct-2024 20:11:03

Verbosity: Terse

Logged Diagnostic:

Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_7f9dffcd-af03-4c9f-9cad-c2f40e7be48b.png

Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=CommentingCode.mlx)

Stack:

In /home/runner/work/Programming-Structuring-Code/Programming-Structuring-Code/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 110

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=Debugging.mlx

The test passed. Duration: 1.1728 seconds

Event:

Timestamp: 18-Oct-2024 20:11:08

Verbosity: Terse

Logged Diagnostic:

Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_2e2743b8-f3d8-447c-8e06-7322f009e61a.png

Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=Debugging.mlx)

Stack:

In /home/runner/work/Programming-Structuring-Code/Programming-Structuring-Code/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 110

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=Functions.mlx

The test passed. Duration: 10.4040 seconds

Event:

Timestamp: 18-Oct-2024 20:11:19

Verbosity: Terse

Logged Diagnostic:

Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_e439d382-590c-4a4d-836d-a3759b1ce618.png

Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=Functions.mlx)

Stack:

In /home/runner/work/Programming-Structuring-Code/Programming-Structuring-Code/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 110

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=SharingCode.mlx

The test passed. Duration: 0.0710 seconds

(Overview)

Command Window Text

Running SmokeTests >> Running CommentingCode.mlx countdown = 10 9 8 7 6 5 4 3 2 1 The logical combination is true. 1 is odd. 2 is even. 3 is odd. 4 is even. 5 is odd. 6 is even. 7 is odd. [Terse] Diagnostic logged (2024-10-18 20:10:41): Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_23f56ca8-9918-4c4c-8e5c-0ce267ad7074.png .>> Running Debugging.mlx [Terse] Diagnostic logged (2024-10-18 20:10:45): Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_7b38f70a-5cb2-4562-9c1a-19abe10596c3.png .>> Running Functions.mlx ans = 0.7500 Hello, world! name = "Sara" Hello, Sara! /opt/hostedtoolcache/MATLAB/2024.2.999/x64/toolbox/matlab/funfun/quad.m /opt/hostedtoolcache/MATLAB/2024.2.999/x64/toolbox/matlab/funfun/quad.m tsc = function_handle with value: @(x,shift)sin(1./x)+shift ans = 1.3740 ShowTaylor ShowTaylor calculates and displays Taylor polynomial approximations ShowTaylor(fh,deg,bds,x0) The arguments are: fh, a function handle identifying the function to be approximated deg, the order, or vector of orders, of the Taylor polynomial(s) to be used bds, a length two vector of doubles identifying the domain to use for plotting the results x0 is a double identifying the center, x=x0, of the Taylor polynomial approximation ShowTaylor creates and displays a plot of the original function and its approximates of order deg. If deg is a vector, then each approximation is displayed for 0.2 seconds to animate the series. This is intended to be used to watch approximations improving with increasing order, but it is not limited to that. Example ShowTaylor(@cos,[3,7,15],[-2*pi 2*pi],0) graphs the function <equation> over the domain <equation>. Then it computes the Taylor polynomials of degree three, seven, and fifteen, and produces three plots: <A graph of y=cos(x) overlayed by a graph of the third-order Taylor polynomial y_3 which overlaps well in [-0.5,0.5] and follows the trend for [-1.5,1.5].><A plot of y=cos(x) overlayed with the 7th order Taylor polynomial y_7 which agrees well on [-2,2] and follows the trend on [-3,3].><A plot of y=cos(x) overlayed with the 15th order Taylor polynomial y_{15} which agrees well on [-5.8,5.8] and follows the trend in the region shown.> <a href="matlab:doc ShowTaylor">Documentation for ShowTaylor</a> This is the default value. Please complete this exercise and rerun this code. [Terse] Diagnostic logged (2024-10-18 20:10:58): Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_5ce7e4f4-562c-4428-8448-726d693ebe2c.png .>> Running SharingCode.mlx usage: git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--no-lazy-fetch] [--no-optional-locks] [--no-advice] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] [--config-env=<name>=<envvar>] <command> [<args>] These are common Git commands used in various situations: start a working area (see also: git help tutorial) clone Clone a repository into a new directory init Create an empty Git repository or reinitialize an existing one work on the current change (see also: git help everyday) add Add file contents to the index mv Move or rename a file, a directory, or a symlink restore Restore working tree files rm Remove files from the working tree and from the index examine the history and state (see also: git help revisions) bisect Use binary search to find the commit that introduced a bug diff Show changes between commits, commit and working tree, etc grep Print lines matching a pattern log Show commit logs show Show various types of objects status Show the working tree status grow, mark and tweak your common history branch List, create, or delete branches commit Record changes to the repository merge Join two or more development histories together rebase Reapply commits on top of another base tip reset Reset current HEAD to the specified state switch Switch branches tag Create, list, delete or verify a tag object signed with GPG collaborate (see also: git help workflows) fetch Download objects and refs from another repository pull Fetch from and integrate with another repository or a local branch push Update remote refs along with associated objects 'git help -a' and 'git help -g' list available subcommands and some concept guides. See 'git help <command>' or 'git help <concept>' to read about a specific subcommand or concept. See 'git help git' for an overview of the system. . Done SmokeTests __________ Running SolnSmokeTests ....>> Running CommentingCodeSoln.mlx BuildWord BuildWord creates a random string of letters word = BuildWord(len) len is a positive integer defining the number of random letters to string together word is the output, consisting of a string of len letters <a href="matlab:doc BuildWord">Documentation for BuildWord</a> countdown = 10 9 8 7 6 5 4 3 2 1 countdown = 10 9 8 7 6 5 4 3 2 1 The logical combination is true. 1 is odd. 2 is even. 3 is odd. 4 is even. 5 is odd. 6 is even. 7 is odd. 1 is odd. 2 is even. 3 is odd. 4 is even. 5 is odd. 6 is even. 7 is odd. [Terse] Diagnostic logged (2024-10-18 20:11:03): Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_7f9dffcd-af03-4c9f-9cad-c2f40e7be48b.png .>> Running DebuggingSoln.mlx a = 4 M23 = 1.6934 b = 16 x = 8.1548 z = -3.1548 y = 25 c = 2 ans = 100 A = 0.8000 0.1000 0.6000 0.3000 0.5000 0.7000 0.4000 0.9000 0.2000 B = 0.0318 0.0971 0.3171 0.2769 0.8235 0.9502 0.0462 0.6948 0.0344 ans = 3x3 logical array 1 1 1 1 0 0 1 1 1 [Terse] Diagnostic logged (2024-10-18 20:11:08): Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_2e2743b8-f3d8-447c-8e06-7322f009e61a.png .>> Running FunctionsSoln.mlx ans = 2 4 8 16 32 ans = 0.0000 + 3.0000i ans = 2.7183 ans = 6.1232e-17 ans = 0.8660 ans = 0.7500 See, there is an error: Undefined function 'sqrt' for input arguments of type 'string'. f = -23.3780 -15.7550 1.0000 -0.4336 Hello, world! name = "Sara" Hello, Sara! xPlus = 1 xMinus = -3 xPlus = 3 xMinus = -3 xPlus = 0.6667 xMinus = -2.5000 xPlus = -0.5000 + 0.8660i xMinus = -0.5000 - 0.8660i r1 = 0.7071 r2 = -0.7071 /home/runner/work/Programming-Structuring-Code/Programming-Structuring-Code/InstructorResources/Solutions/FunctionLibrarySoln/quad.mlx /home/runner/work/Programming-Structuring-Code/Programming-Structuring-Code/InstructorResources/Solutions/FunctionLibrarySoln/quad.mlx /opt/hostedtoolcache/MATLAB/2024.2.999/x64/toolbox/matlab/funfun/quad.m % Shadowed r1 = 0.6667 r2 = -2.5000 tsc = function_handle with value: @(x,shift)sin(1./x)+shift ans = 1.3740 ShowTaylor ShowTaylor calculates and displays Taylor polynomial approximations ShowTaylor(fh,deg,bds,x0) The arguments are: fh, a function handle identifying the function to be approximated deg, the order, or vector of orders, of the Taylor polynomial(s) to be used bds, a length two vector of doubles identifying the domain to use for plotting the results x0 is a double identifying the center, x=x0, of the Taylor polynomial approximation ShowTaylor creates and displays a plot of the original function and its approximates of order deg. If deg is a vector, then each approximation is displayed for 0.2 seconds to animate the series. This is intended to be used to watch approximations improving with increasing order, but it is not limited to that. Example ShowTaylor(@cos,[3,7,15],[-2*pi 2*pi],0) graphs the function <equation> over the domain <equation>. Then it computes the Taylor polynomials of degree three, seven, and fifteen, and produces three plots: <A graph of y=cos(x) overlayed by a graph of the third-order Taylor polynomial y_3 which overlaps well in [-0.5,0.5] and follows the trend for [-1.5,1.5].><A plot of y=cos(x) overlayed with the 7th order Taylor polynomial y_7 which agrees well on [-2,2] and follows the trend on [-3,3].><A plot of y=cos(x) overlayed with the 15th order Taylor polynomial y_{15} which agrees well on [-5.8,5.8] and follows the trend in the region shown.> <a href="matlab:doc ShowTaylor">Documentation for ShowTaylor</a> Running buildWord(8), and buildWord(4), and buildWord(6). The results are lcfxdvnz, clcz, and auvwck. The lengths are correct. The strings are composed of letters. Good work. How might you improve your function further? mid = 0.3456 0.8554 You have calculated the correct midpoint. You have added to the plot, and you have plotted the correct point. You have set the color as yellow. You used the marker 'o'. You have set the MarkerFaceColor to yellow. mySoln = 1.1022 Good work, that is the correct solution. [Terse] Diagnostic logged (2024-10-18 20:11:19): Figure saved to: --> /tmp/a281b959-def8-4a11-9940-d9cf448acfe5/Figure_e439d382-590c-4a4d-836d-a3759b1ce618.png .>> Running SharingCodeSoln.mlx usage: git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--no-lazy-fetch] [--no-optional-locks] [--no-advice] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] [--config-env=<name>=<envvar>] <command> [<args>] These are common Git commands used in various situations: start a working area (see also: git help tutorial) clone Clone a repository into a new directory init Create an empty Git repository or reinitialize an existing one work on the current change (see also: git help everyday) add Add file contents to the index mv Move or rename a file, a directory, or a symlink restore Restore working tree files rm Remove files from the working tree and from the index examine the history and state (see also: git help revisions) bisect Use binary search to find the commit that introduced a bug diff Show changes between commits, commit and working tree, etc grep Print lines matching a pattern log Show commit logs show Show various types of objects status Show the working tree status grow, mark and tweak your common history branch List, create, or delete branches commit Record changes to the repository merge Join two or more development histories together rebase Reapply commits on top of another base tip reset Reset current HEAD to the specified state switch Switch branches tag Create, list, delete or verify a tag object signed with GPG collaborate (see also: git help workflows) fetch Download objects and refs from another repository pull Fetch from and integrate with another repository or a local branch push Update remote refs along with associated objects 'git help -a' and 'git help -g' list available subcommands and some concept guides. See 'git help <command>' or 'git help <concept>' to read about a specific subcommand or concept. See 'git help git' for an overview of the system. . Done SolnSmokeTests __________