Completing small items.
This commit is contained in:
@@ -93,8 +93,10 @@
|
||||
\end{itemize}
|
||||
\item \incode{loop} test item specific variables
|
||||
\begin{itemize}
|
||||
\item \incode{loop\_index} : loop index (starting from 0)
|
||||
\item \incode{loop\_param} : current value of the loop iterator
|
||||
\item \incode{loop\_index} : loop index (starting from 0)
|
||||
\item \incode{loop\_index\_inverse} : loop index in reverse order
|
||||
\item \incode{loop\_count} : total number of iterations
|
||||
\item \incode{loop\_param} : current value of the loop iterator
|
||||
\end{itemize}
|
||||
\end{itemize}
|
||||
\end{frame}
|
||||
@@ -187,9 +189,16 @@ def dummy_func(param1, param2, param4, param4):
|
||||
|
||||
\begin{frame}[fragile]{\incode{lua\_func} test item function call}
|
||||
\begin{itemize}
|
||||
\item Calls the a lua function from a module
|
||||
\item The lua file must import helper's module \incode{testium}
|
||||
\item Calls a Lua function by its name
|
||||
\begin{minted}[fontsize=\fontsize{6}{7}\selectfont]{lua}
|
||||
tm = require("testium")
|
||||
|
||||
function dummy_func(param1, param2)
|
||||
local value = tm.gd("global_dict_key")
|
||||
...
|
||||
return 10
|
||||
end
|
||||
\end{minted}
|
||||
\begin{itemize}
|
||||
\item To get a variable from the global dictionnary : \incode{tm.gd("global\_dict\_key")}
|
||||
|
||||
Reference in New Issue
Block a user